X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2FQtLauncher.cxx;fp=src%2FGUI%2FQtLauncher.cxx;h=2fb02fce89ca028ea8618898e26d11ab6a82b19c;hb=17fb35d764bc2aa07f1cdb4c7fc57136dd259aab;hp=16307ecf9a576e59fc11751d6b240ba9501eb783;hpb=6ae92b667ecdbacc185f5a9dccae0150da282171;p=flightgear.git diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 16307ecf9..2fb02fce8 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -502,7 +502,7 @@ bool runLauncherDialog() dlg.show(); int appResult = qApp->exec(); - if (appResult < 0) { + if (appResult <= 0) { return false; // quit } @@ -966,7 +966,8 @@ void QtLauncher::onRun() saveSettings(); - qApp->exit(0); + // set a positive value here so we can detect this case in runLauncherDialog + qApp->exit(1); }