#1446 Ensure batch execution does not crash when closing ResInsight

This commit is contained in:
Bjørnar Grip Fjær
2017-05-04 14:28:32 +02:00
parent c845eefb96
commit a08dbc91ba

View File

@@ -1399,7 +1399,8 @@ bool RiaApplication::parseArguments()
std::vector<QString> gridFiles = readFileListFromTextFile(gridListFile); std::vector<QString> gridFiles = readFileListFromTextFile(gridListFile);
runMultiCaseSnapshots(projectFileName, gridFiles, "multiCaseSnapshots"); runMultiCaseSnapshots(projectFileName, gridFiles, "multiCaseSnapshots");
closeProject(); closeAllWindows();
processEvents();
return false; return false;
} }
@@ -1552,7 +1553,8 @@ bool RiaApplication::parseArguments()
} }
} }
closeProject(); closeAllWindows();
processEvents();
} }
// Returning false will exit the application // Returning false will exit the application