Debugger: Fix debugger switching to edit mode.

... on clicking stack frames or disassembler/
memory views.

Introduce flags to openEditorAt, pass
EditorManager::NoModeSwitch where applicable.

Task-number: QTCREATORBUG-2278
This commit is contained in:
Friedemann Kleint
2010-09-07 09:51:20 +02:00
parent 9374ba00d2
commit 763b59aa73
5 changed files with 21 additions and 14 deletions

View File

@@ -297,7 +297,9 @@ void Manager::onDocumentUpdated(CPlusPlus::Document::Ptr doc)
void Manager::gotoLocation(const QString &fileName, int line, int column)
{
bool newEditor = false;
TextEditor::BaseTextEditor::openEditorAt(fileName, line, column, QString(), &newEditor);
TextEditor::BaseTextEditor::openEditorAt(fileName, line, column, QString(),
Core::EditorManager::IgnoreNavigationHistory,
&newEditor);
}
void Manager::gotoLocations(const QList<QVariant> &list)