Fix launcher cmd-Q behaviour.
This commit is contained in:
parent
db31e0d49c
commit
0d069f2581
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue