forked from qt-creator/qt-creator
Ensure creation of shutdownGuard on main thread
Minimizes errors and allows us to use shutdownGuard as "an object on the main thread" from other threads. Change-Id: I8bca128a3fe7d6ed9ca585891557af729c5479bb Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -274,6 +274,7 @@ PluginManager::PluginManager()
|
|||||||
{
|
{
|
||||||
m_instance = this;
|
m_instance = this;
|
||||||
d = new PluginManagerPrivate(this);
|
d = new PluginManagerPrivate(this);
|
||||||
|
shutdownGuard(); // ensure creation on main thread
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user