Don't delete capture unless it's still temporary, even if we own it

This commit is contained in:
baldurk
2019-10-11 13:07:36 +01:00
parent 090cd03185
commit 0908588481
+2 -1
View File
@@ -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);