From 0d069f2581bc23707ae88eb5ee48967d51cd4ce4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 8 Sep 2016 11:41:21 +0100 Subject: [PATCH] Fix launcher cmd-Q behaviour. --- src/GUI/QtLauncher.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }