forked from qt-creator/qt-creator
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:
@@ -484,6 +484,8 @@ public:
|
|||||||
|
|
||||||
mainWindow->addSubPerspectiveSwitcher(EngineManager::engineChooser());
|
mainWindow->addSubPerspectiveSwitcher(EngineManager::engineChooser());
|
||||||
mainWindow->addSubPerspectiveSwitcher(EngineManager::dapEngineChooser());
|
mainWindow->addSubPerspectiveSwitcher(EngineManager::dapEngineChooser());
|
||||||
|
|
||||||
|
IContext::attach(this, Context(CC::C_EDITORMANAGER));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1168,8 +1170,6 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
|
|||||||
// Debug mode setup
|
// Debug mode setup
|
||||||
m_mode = new DebugMode;
|
m_mode = new DebugMode;
|
||||||
|
|
||||||
IContext::attach(m_mode->widget(), Context(CC::C_EDITORMANAGER));
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Connections
|
// Connections
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user