#744 Error message for snapshots in Batch mode

This commit is contained in:
Magne Sjaastad 2016-07-15 10:55:20 +02:00
parent c6a41cc18f
commit 2c96599327

View File

@ -1088,6 +1088,9 @@ bool RiaApplication::parseArguments()
QString gridListFile = cvfqt::Utils::toQString(o.safeValue(0)); QString gridListFile = cvfqt::Utils::toQString(o.safeValue(0));
std::vector<QString> gridFiles = readFileListFromTextFile(gridListFile); std::vector<QString> gridFiles = readFileListFromTextFile(gridListFile);
runMultiCaseSnapshots(projectFileName, gridFiles, "multiCaseSnapshots"); runMultiCaseSnapshots(projectFileName, gridFiles, "multiCaseSnapshots");
closeProject(false);
return false; return false;
} }
} }
@ -1172,6 +1175,8 @@ bool RiaApplication::parseArguments()
saveSnapshotForAllViews("snapshots"); saveSnapshotForAllViews("snapshots");
mainWnd->loadWinGeoAndDockToolBarLayout(); mainWnd->loadWinGeoAndDockToolBarLayout();
closeProject(false);
} }
// Returning false will exit the application // Returning false will exit the application