forked from qt-creator/qt-creator
Adds option to make editor not scroll on debugging
Added an option to change the behavior of the debuggercore so that the current editor isn't always centered on the current line, to stop unnecessary jumping of the code. Change-Id: I9406df518bb1b977e39a0265ee7fd6fae2069ed9 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -540,7 +540,9 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
IEditor *editor = EditorManager::openEditor(file, Id(),
|
||||
EditorManager::IgnoreNavigationHistory, &newEditor);
|
||||
QTC_ASSERT(editor, return); // Unreadable file?
|
||||
editor->gotoLine(line, 0);
|
||||
|
||||
editor->gotoLine(line, 0, !debuggerCore()->boolSetting(StationaryEditorWhileStepping));
|
||||
|
||||
if (newEditor)
|
||||
editor->document()->setProperty(Constants::OPENED_BY_DEBUGGER, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user