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);