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:
@@ -338,10 +338,11 @@ void HelpPlugin::extensionsInitialized()
|
||||
helpManager->registerDocumentation(filesToRegister);
|
||||
}
|
||||
|
||||
void HelpPlugin::aboutToShutdown()
|
||||
ExtensionSystem::IPlugin::ShutdownFlag HelpPlugin::aboutToShutdown()
|
||||
{
|
||||
if (m_sideBar)
|
||||
m_sideBar->saveSettings(m_core->settings(), QLatin1String("HelpSideBar"));
|
||||
return SynchronousShutdown;
|
||||
}
|
||||
|
||||
void HelpPlugin::setupUi()
|
||||
|
||||
Reference in New Issue
Block a user