From 66d1157e3a1a85ca571d0839e38a33a641dab4e8 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 7 Feb 2018 18:06:58 +0000 Subject: [PATCH] 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. --- qrenderdoc/Code/CaptureContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrenderdoc/Code/CaptureContext.cpp b/qrenderdoc/Code/CaptureContext.cpp index 762554037..444c6ecd9 100644 --- a/qrenderdoc/Code/CaptureContext.cpp +++ b/qrenderdoc/Code/CaptureContext.cpp @@ -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));