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:
Ulf Hermann
2018-07-02 15:19:54 +02:00
parent eb711d9864
commit b9328012b1

View File

@@ -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));