forked from qt-creator/qt-creator
Debugger: Do not switch to design mode when hitting a break point
Change-Id: I2b31aa78a707ca830382095f20d33439caa830ac Task-number: QTCREATORBUG-20712 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -534,8 +534,10 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
|||||||
const QString file = QDir::cleanPath(loc.fileName());
|
const QString file = QDir::cleanPath(loc.fileName());
|
||||||
const int line = loc.lineNumber();
|
const int line = loc.lineNumber();
|
||||||
bool newEditor = false;
|
bool newEditor = false;
|
||||||
IEditor *editor = EditorManager::openEditor(file, Id(),
|
IEditor *editor = EditorManager::openEditor(
|
||||||
EditorManager::IgnoreNavigationHistory, &newEditor);
|
file, Id(),
|
||||||
|
EditorManager::IgnoreNavigationHistory | EditorManager::DoNotSwitchToDesignMode,
|
||||||
|
&newEditor);
|
||||||
QTC_ASSERT(editor, return); // Unreadable file?
|
QTC_ASSERT(editor, return); // Unreadable file?
|
||||||
|
|
||||||
editor->gotoLine(line, 0, !boolSetting(StationaryEditorWhileStepping));
|
editor->gotoLine(line, 0, !boolSetting(StationaryEditorWhileStepping));
|
||||||
|
|||||||
Reference in New Issue
Block a user