Commit e1f6718c authored by Eike Ziller's avatar Eike Ziller
Browse files

Use actual editor instance from activateEditor to jump to line

Change-Id: I679d9809dd0f7c945ff2ebde53330a922834795f
Reviewed-by: default avatarEike Ziller <>
parent e3b2c2a9
......@@ -1555,9 +1555,10 @@ IEditor *EditorManager::openEditor(Core::Internal::EditorView *view, const QStri
const QList<IEditor *> editors = d->m_documentModel->editorsForFilePath(fn);
if (!editors.isEmpty()) {
IEditor *editor = editors.first();
if (flags & EditorManager::CanContainLineNumber)
editor = activateEditor(view, editor, flags);
if (editor && flags & EditorManager::CanContainLineNumber)
editor->gotoLine(lineNumber, -1);
return activateEditor(view, editor, flags);
return editor;
QString realFn = autoSaveName(fn);
Supports Markdown
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