Make sure temporary logs opened from the command line are cleaned up

This commit is contained in:
baldurk
2017-06-13 18:13:31 +01:00
parent f81876335f
commit d19ba7eadc
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -77,7 +77,9 @@ CaptureContext::CaptureContext(QString paramFilename, QString remoteHost, uint32
{
QFileInfo fi(paramFilename);
m_MainWindow->LoadFromFilename(paramFilename);
m_MainWindow->LoadFromFilename(paramFilename, temp);
if(temp)
m_MainWindow->takeLogOwnership();
}
}