QApplication::aboutToQuit signal is used for the plugin manager's shutdown

Merge-request: 179
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Denis Mingulov
2010-09-27 14:58:12 +02:00
committed by Tobias Hunger
parent 99293bb204
commit 3065b029e5
3 changed files with 5 additions and 5 deletions

View File

@@ -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();
}