Skip to content
Snippets Groups Projects
Commit 14fe6929 authored by Eike Ziller's avatar Eike Ziller
Browse files

Explicitly quit when all (relevant) windows are closed


This shouldn't be necessary, works around QTBUG-31569 (Qt5)

Change-Id: Iff157a76a896bc4d6224039ae859788818abba8b
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 029fd5a5
No related branches found
No related tags found
No related merge requests found
...@@ -505,6 +505,10 @@ int main(int argc, char **argv) ...@@ -505,6 +505,10 @@ int main(int argc, char **argv)
QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(), QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(),
SLOT(fileOpenRequest(QString))); SLOT(fileOpenRequest(QString)));
// quit when last window (relevant window, see WA_QuitOnClose) is closed
// this should actually be the default, but doesn't work in Qt 5
// QTBUG-31569
QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
// shutdown plugin manager on the exit // shutdown plugin manager on the exit
QObject::connect(&app, SIGNAL(aboutToQuit()), &pluginManager, SLOT(shutdown())); QObject::connect(&app, SIGNAL(aboutToQuit()), &pluginManager, SLOT(shutdown()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment