mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Support running jobs without blocking GUI (#13040)
* Add view job log command. * Add stop job command. * Do not block ui while job is running. * Show progress while job is running * Make sure user gets notified of running jobs when exiting ResInsight or closing current project.
This commit is contained in:
29 files changed
+809
-122
No files matched your search
@@ -31,10 +31,12 @@ void RicCloseProjectFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
disableModelChangeContribution();
|
||||
|
||||
RiaGuiApplication* app = RiaGuiApplication::instance();
|
||||
if ( !app || !app->askUserToSaveModifiedProject() ) return;
|
||||
if ( RiaGuiApplication* app = RiaGuiApplication::instance() )
|
||||
{
|
||||
if ( !app->checkWithUserBeforeClose() ) return;
|
||||
|
||||
app->closeProject();
|
||||
app->closeProject();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user