quit event loop after closing main window if not started by an extern host application
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user