forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.7'
Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: I29916313f12e25f3942ac926f8e4d4490074978e
This commit is contained in:
@@ -486,6 +486,7 @@ void DebuggerEngine::start()
|
||||
d->m_runTool->runControl()->setApplicationProcessHandle(d->m_inferiorPid);
|
||||
|
||||
action(OperateByInstruction)->setEnabled(hasCapability(DisassemblerCapability));
|
||||
action(OperateByInstruction)->setChecked(boolSetting(OperateByInstruction));
|
||||
|
||||
QTC_ASSERT(state() == DebuggerNotReady || state() == DebuggerFinished,
|
||||
qDebug() << state());
|
||||
@@ -534,8 +535,10 @@ void DebuggerEngine::gotoLocation(const Location &loc)
|
||||
const QString file = QDir::cleanPath(loc.fileName());
|
||||
const int line = loc.lineNumber();
|
||||
bool newEditor = false;
|
||||
IEditor *editor = EditorManager::openEditor(file, Id(),
|
||||
EditorManager::IgnoreNavigationHistory, &newEditor);
|
||||
IEditor *editor = EditorManager::openEditor(
|
||||
file, Id(),
|
||||
EditorManager::IgnoreNavigationHistory | EditorManager::DoNotSwitchToDesignMode,
|
||||
&newEditor);
|
||||
QTC_ASSERT(editor, return); // Unreadable file?
|
||||
|
||||
editor->gotoLine(line, 0, !boolSetting(StationaryEditorWhileStepping));
|
||||
|
||||
Reference in New Issue
Block a user