diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 7747484ab1b..9e071ece033 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -484,6 +484,8 @@ public: mainWindow->addSubPerspectiveSwitcher(EngineManager::engineChooser()); mainWindow->addSubPerspectiveSwitcher(EngineManager::dapEngineChooser()); + + IContext::attach(this, Context(CC::C_EDITORMANAGER)); } }; @@ -1168,8 +1170,6 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments) // Debug mode setup m_mode = new DebugMode; - IContext::attach(m_mode->widget(), Context(CC::C_EDITORMANAGER)); - // // Connections //