From d0cad6fff36a8f00c6399b450f680ec24946a932 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 16 Jul 2024 11:53:42 +0200 Subject: [PATCH] Debugger: Attach Context(CC::C_EDITORMANAGER) in main widget constructor ... when it is created, but don't force widget creation to be able to attach the context. Change-Id: I62a7610241e68d658f2b31fb98666d94fe6061d7 Reviewed-by: Eike Ziller --- src/plugins/debugger/debuggerplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 //