mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Use QCommandLineParser to parse arguments more intelligently. Refs #843
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user