forked from qt-creator/qt-creator
Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.
If a plugin requests asyncronous shutdown, the shutdown sequence does not continue to deleting the plugins before it has sent a asynchronousShutdownFinished signal. During that time an event loop is running.
This commit is contained in:
@@ -143,12 +143,13 @@ void FindPlugin::extensionsInitialized()
|
||||
readSettings();
|
||||
}
|
||||
|
||||
void FindPlugin::aboutToShutdown()
|
||||
ExtensionSystem::IPlugin::ShutdownFlag FindPlugin::aboutToShutdown()
|
||||
{
|
||||
d->m_findToolBar->setVisible(false);
|
||||
d->m_findToolBar->setParent(0);
|
||||
d->m_currentDocumentFind->removeConnections();
|
||||
writeSettings();
|
||||
return SynchronousShutdown;
|
||||
}
|
||||
|
||||
void FindPlugin::filterChanged()
|
||||
|
||||
Reference in New Issue
Block a user