mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8290 commandFile: Crash for scaleFractureTemplate
Make sure closeProject() is called before application exit. If not, some field editors will remain open an cause assert and crash on shutdown.
This commit is contained in:
parent
88ca478bab
commit
34ff98d2fa
@ -109,10 +109,16 @@ int main( int argc, char* argv[] )
|
||||
|
||||
if ( status == RiaApplication::ApplicationStatus::EXIT_COMPLETED )
|
||||
{
|
||||
// Make sure project is closed to avoid assert and crash in destruction of widgets
|
||||
app->closeProject();
|
||||
|
||||
return 0;
|
||||
}
|
||||
else if ( status == RiaApplication::ApplicationStatus::EXIT_WITH_ERROR )
|
||||
{
|
||||
// Make sure project is closed to avoid assert and crash in destruction of widgets
|
||||
app->closeProject();
|
||||
|
||||
return 2;
|
||||
}
|
||||
else if ( status == RiaApplication::ApplicationStatus::KEEP_GOING )
|
||||
|
@ -776,8 +776,6 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
|
||||
|
||||
RiuMainWindow::instance()->loadWinGeoAndDockToolBarLayout();
|
||||
|
||||
closeProject();
|
||||
|
||||
return ApplicationStatus::EXIT_COMPLETED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user