Fix closing app in GUI mode.

It must close only in console mode.
This commit is contained in:
Roman Telezhynskyi 2020-04-18 10:53:32 +03:00
parent c7085e42c3
commit adb6419670

View File

@ -538,7 +538,7 @@ void PuzzleApplication::ProcessArguments(const VPuzzleCommandLinePtr &cmd)
// }
}
if (cmd->IsGuiEnabled())
if (not cmd->IsGuiEnabled())
{
qApp->exit(V_EX_OK); // close program after processing in console mode
}