forked from qt-creator/qt-creator
ProjectExplorer: Don't add plugin to object pool
The addObject/removeObject there was part of the initial commit, it does not seem to be used or needed anymore. Change-Id: I6f359da34a63a94aa8312f15c3a9b3f92fd8ee2a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -483,8 +483,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
CustomWizard::setVerbose(arguments.count(QLatin1String("-customwizard-verbose")));
|
||||
JsonWizardFactory::setVerbose(arguments.count(QLatin1String("-customwizard-verbose")));
|
||||
|
||||
addObject(this);
|
||||
|
||||
addAutoReleasedObject(new DeviceManager);
|
||||
|
||||
#ifdef WITH_JOURNALD
|
||||
@@ -1653,7 +1651,6 @@ ExtensionSystem::IPlugin::ShutdownFlag ProjectExplorerPlugin::aboutToShutdown()
|
||||
// might shutdown asynchronously).
|
||||
removeObject(dd->m_welcomePage);
|
||||
delete dd->m_welcomePage;
|
||||
removeObject(this);
|
||||
|
||||
if (dd->m_activeRunControlCount == 0)
|
||||
return SynchronousShutdown;
|
||||
|
Reference in New Issue
Block a user