diff options
author | Denis Mingulov <denis.mingulov@gmail.com> | 2010-09-27 14:58:12 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-09-27 14:59:22 +0200 |
commit | 3065b029e5e74acdf161a8ba2b4b23f88fdca768 (patch) | |
tree | a996a627fd9743cffd3da70be7c9f80ec762acfe /src/app | |
parent | 99293bb20414e2b3bd1a9a110a002a54e7b472e3 (diff) | |
download | qt-creator-3065b029e5e74acdf161a8ba2b4b23f88fdca768.tar.gz |
QApplication::aboutToQuit signal is used for the plugin manager's shutdown
Merge-request: 179
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index afc08fc456..a453325a55 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -317,11 +317,12 @@ int main(int argc, char **argv) } QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(), SLOT(fileOpenRequest(QString))); + // shutdown plugin manager on the exit + QObject::connect(&app, SIGNAL(aboutToQuit()), &pluginManager, SLOT(shutdown())); + // Do this after the event loop has started QTimer::singleShot(100, &pluginManager, SLOT(startTests())); - int ret = app.exec(); - pluginManager.shutdown(); - return ret; + return app.exec(); } |