Save config immediately after setting last opened capture filename

* This means that even if we crash while opening the capture it's set
  for the crash reporter to pick up.
This commit is contained in:
baldurk
2018-02-07 18:06:58 +00:00
parent f044719b9a
commit 66d1157e3a
+3
View File
@@ -138,7 +138,10 @@ void CaptureContext::LoadCapture(const rdcstr &captureFile, const rdcstr &origFi
m_LoadInProgress = true;
if(local)
{
m_Config.CrashReport_LastOpenedCapture = origFilename;
m_Config.Save();
}
bool newCapture = (!temporary && !Config().RecentCaptureFiles.contains(origFilename));