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:
@@ -2480,13 +2480,14 @@ void DebuggerPlugin::clearCppCodeModelSnapshot()
|
||||
d->m_codeModelSnapshot = CPlusPlus::Snapshot();
|
||||
}
|
||||
|
||||
void DebuggerPlugin::aboutToShutdown()
|
||||
ExtensionSystem::IPlugin::ShutdownFlag DebuggerPlugin::aboutToShutdown()
|
||||
{
|
||||
writeSettings();
|
||||
if (d->m_uiSwitcher)
|
||||
d->m_uiSwitcher->aboutToShutdown();
|
||||
//if (d->m_engine)
|
||||
// d->m_engine->shutdown();
|
||||
return SynchronousShutdown;
|
||||
}
|
||||
|
||||
void DebuggerPlugin::showMessage(const QString &msg, int channel, int timeout)
|
||||
|
||||
Reference in New Issue
Block a user