diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 47f64a2d60d5aa3dcc6e220e82bf1a429ec4fc97..b1c729c49b3ba64dc0f0e5ff6bdb4016ed1b1f1b 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1249,8 +1249,7 @@ Core::IEditor *EditorManager::activateEditorForDocument(Core::Internal::EditorVi if (editors.isEmpty()) return 0; - activateEditor(view, editors.first(), flags); - return editors.first(); + return activateEditor(view, editors.first(), flags); } /* For something that has a 'QStringList mimeTypes' (IEditorFactory