forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
99293bb204
commit
3065b029e5
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user