forked from qt-creator/qt-creator
Debugger: Resolve ambiguity of F10 shortcut
The debugger plugin (correctly) starts in a C_DEBUGGER_NOTRUNNING context, but this was not removed on engine selection, i.e. F10 stayed active for "Start and break on main" while the engine activated F10 for "Next", too. Fixes: QTCREATORBUG-22330 Change-Id: Ia0a477c8519dc0d5097e3f41a60a5a9e86124b69 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -166,7 +166,13 @@ public:
|
||||
Core::Id m_previousMode;
|
||||
QPointer<QComboBox> m_engineChooser;
|
||||
bool m_shuttingDown = false;
|
||||
Context m_currentAdditionalContext;
|
||||
|
||||
// This contains the contexts that need to be removed when switching
|
||||
// away from the current engine item. Since the plugin itself adds
|
||||
// C_DEBUGGER_NOTRUNNING on initialization this is set here as well,
|
||||
// so it can be removed when switching away from the initial (null)
|
||||
// engine. See QTCREATORBUG-22330.
|
||||
Context m_currentAdditionalContext{Constants::C_DEBUGGER_NOTRUNNING};
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user