diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 67e7969a459..fba376bd332 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -3256,7 +3256,6 @@ void showModuleSections(const QString &moduleName, const Sections §ions) void DebuggerPluginPrivate::aboutToShutdown() { - m_plugin->removeObject(this); disconnect(SessionManager::instance(), SIGNAL(startupProjectChanged(ProjectExplorer::Project*)), this, 0); @@ -3417,6 +3416,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess IPlugin::ShutdownFlag DebuggerPlugin::aboutToShutdown() { + removeObject(this); dd->aboutToShutdown(); return SynchronousShutdown; }