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 <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-07-16 11:53:42 +02:00
parent 851c69bea8
commit d0cad6fff3

View File

@@ -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
//