quit event loop after closing main window if not started by an extern host application

This commit is contained in:
wmayer
2018-08-09 17:03:01 +02:00
parent d3b69b582d
commit 49e9154b40
2 changed files with 3 additions and 1 deletions

View File

@@ -976,7 +976,8 @@ void MainWindow::closeEvent (QCloseEvent * e)
}
/*emit*/ mainWindowClosed();
qApp->quit(); // stop the event loop
if (this->property("QuitOnClosed").isValid())
qApp->quit(); // stop the event loop
}
}