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:
hjk
2023-12-13 14:02:32 +01:00
parent c3a7279f05
commit b0d8ae6d65

View File

@@ -1938,7 +1938,7 @@ bool PluginManager::isInitializationDone()
bool PluginManager::isShuttingDown() bool PluginManager::isShuttingDown()
{ {
return d->m_isShuttingDown; return !d || d->m_isShuttingDown;
} }
/*! /*!