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:
hjk
2018-01-18 14:43:22 +01:00
parent 673aacc67c
commit 052f8ae98a

View File

@@ -483,8 +483,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
CustomWizard::setVerbose(arguments.count(QLatin1String("-customwizard-verbose"))); CustomWizard::setVerbose(arguments.count(QLatin1String("-customwizard-verbose")));
JsonWizardFactory::setVerbose(arguments.count(QLatin1String("-customwizard-verbose"))); JsonWizardFactory::setVerbose(arguments.count(QLatin1String("-customwizard-verbose")));
addObject(this);
addAutoReleasedObject(new DeviceManager); addAutoReleasedObject(new DeviceManager);
#ifdef WITH_JOURNALD #ifdef WITH_JOURNALD
@@ -1653,7 +1651,6 @@ ExtensionSystem::IPlugin::ShutdownFlag ProjectExplorerPlugin::aboutToShutdown()
// might shutdown asynchronously). // might shutdown asynchronously).
removeObject(dd->m_welcomePage); removeObject(dd->m_welcomePage);
delete dd->m_welcomePage; delete dd->m_welcomePage;
removeObject(this);
if (dd->m_activeRunControlCount == 0) if (dd->m_activeRunControlCount == 0)
return SynchronousShutdown; return SynchronousShutdown;