Commit 1f3908e0 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Avoid adding navigation history twice

This code is already in TextEditor::BaseTextEditor::openEditorAt.
parent 166a4086
......@@ -369,10 +369,7 @@ void CPPEditor::jumpToMethod(int)
if (! symbol)
return;
Core::EditorManager::instance()->addCurrentPositionToNavigationHistory(true);
openEditorAt(symbol);
Core::EditorManager::instance()->addCurrentPositionToNavigationHistory();
setFocus();
}
void CPPEditor::updateMethodBoxIndex()
......
......@@ -123,9 +123,9 @@ protected:
} // namespace TextEditor
ITextEditor *BaseTextEditor::openEditorAt(const QString &fileName,
int line,
int column,
const QString &editorKind)
int line,
int column,
const QString &editorKind)
{
Core::EditorManager *editorManager = Core::EditorManager::instance();
editorManager->addCurrentPositionToNavigationHistory(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment