Octave : Always execute command objects in queue before return

This commit is contained in:
Magne Sjaastad 2021-06-15 16:00:47 +02:00
parent 7dfe35a9e0
commit 216126033e

View File

@ -1582,6 +1582,9 @@ void RiaGuiApplication::slotWorkerProcessFinished( int exitCode, QProcess::ExitS
}
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
if ( exitStatus == QProcess::CrashExit )
{
@ -1590,8 +1593,6 @@ void RiaGuiApplication::slotWorkerProcessFinished( int exitCode, QProcess::ExitS
return;
}
executeCommandObjects();
// Exit code != 0 means we have an error
if ( exitCode != 0 )
{