mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Octave : Always execute command objects in queue before return
This commit is contained in:
parent
7dfe35a9e0
commit
216126033e
@ -1582,6 +1582,9 @@ void RiaGuiApplication::slotWorkerProcessFinished( int exitCode, QProcess::ExitS
|
|||||||
}
|
}
|
||||||
m_workerProcess = nullptr;
|
m_workerProcess = nullptr;
|
||||||
|
|
||||||
|
// Always make sure the command objects are executed before any return statement
|
||||||
|
executeCommandObjects();
|
||||||
|
|
||||||
// Either the work process crashed or was aborted by the user
|
// Either the work process crashed or was aborted by the user
|
||||||
if ( exitStatus == QProcess::CrashExit )
|
if ( exitStatus == QProcess::CrashExit )
|
||||||
{
|
{
|
||||||
@ -1590,8 +1593,6 @@ void RiaGuiApplication::slotWorkerProcessFinished( int exitCode, QProcess::ExitS
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
executeCommandObjects();
|
|
||||||
|
|
||||||
// Exit code != 0 means we have an error
|
// Exit code != 0 means we have an error
|
||||||
if ( exitCode != 0 )
|
if ( exitCode != 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user