forked from qt-creator/qt-creator
ExtensionSystem: Don't forget that we are shutting down
This apparently canh be triggered from a delayed LanguangeClientManager::deleteClient() when the Client checks isShuttingDown in its destructor. The triggering code path probably should change, but this here avoids the crash. Change-Id: Ic39640b5465bcf14645510b925e00b9977351eac Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1938,7 +1938,7 @@ bool PluginManager::isInitializationDone()
|
|||||||
|
|
||||||
bool PluginManager::isShuttingDown()
|
bool PluginManager::isShuttingDown()
|
||||||
{
|
{
|
||||||
return d->m_isShuttingDown;
|
return !d || d->m_isShuttingDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user