]> git.mxchange.org Git - flightgear.git/commitdiff
Fix launcher cmd-Q behaviour.
authorJames Turner <zakalawe@mac.com>
Thu, 8 Sep 2016 10:41:21 +0000 (11:41 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:49 +0000 (23:27 +0200)
src/GUI/QtLauncher.cxx

index 16307ecf9a576e59fc11751d6b240ba9501eb783..2fb02fce89ca028ea8618898e26d11ab6a82b19c 100644 (file)
@@ -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);
 }