Commit 87de978d authored by David Schulz's avatar David Schulz Committed by Eike Ziller
Browse files

Editor: remove double openEditorAt



Task-Number: QTCREATORBUG-7327
Change-Id: Ied364e53ed8d7378e960b14f64e30c83b22a4cd8
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 280bb3ac
......@@ -1805,15 +1805,6 @@ bool CPPEditorWidget::openCppEditorAt(const Link &link)
if (link.fileName.isEmpty())
return false;
if (baseTextDocument()->fileName() == link.fileName) {
Core::EditorManager *editorManager = Core::EditorManager::instance();
editorManager->cutForwardNavigationHistory();
editorManager->addCurrentPositionToNavigationHistory();
gotoLine(link.line, link.column);
setFocus();
return true;
}
return TextEditor::BaseTextEditorWidget::openEditorAt(link.fileName,
link.line,
link.column,
......
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