From 0908588481863f7027a25d7a7ffdb5945d47465c Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 11 Oct 2019 10:50:16 +0100 Subject: [PATCH] Don't delete capture unless it's still temporary, even if we own it --- qrenderdoc/Windows/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index 66c4bd991..689b60fd8 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -1037,10 +1037,11 @@ void MainWindow::CloseCapture() { QString path = m_Ctx.GetCaptureFilename(); bool local = m_Ctx.IsCaptureLocal(); + bool temp = m_Ctx.IsCaptureTemporary(); m_Ctx.CloseCapture(); - if(m_OwnTempCapture) + if(m_OwnTempCapture && temp) { m_Ctx.Replay().DeleteCapture(path, local); RemoveRecentCapture(path);