Use QCommandLineParser to parse arguments more intelligently. Refs #843

This commit is contained in:
baldurk
2018-01-17 12:21:48 +00:00
parent bf4e14ced8
commit 56c6fa2d04
4 changed files with 190 additions and 122 deletions
+8 -3
View File
@@ -87,9 +87,14 @@ CaptureContext::CaptureContext(QString paramFilename, QString remoteHost, uint32
if(!paramFilename.isEmpty())
{
m_MainWindow->LoadFromFilename(paramFilename, temp);
if(temp)
m_MainWindow->takeCaptureOwnership();
QFileInfo checkFile(paramFilename);
if(checkFile.exists() && checkFile.isFile())
{
m_MainWindow->LoadFromFilename(paramFilename, temp);
if(temp)
m_MainWindow->takeCaptureOwnership();
}
}
}