From f3451e92a10bde6b1afc92c83aa9ea67aeb8f2ca Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 14 Jun 2013 15:51:35 +0200 Subject: [PATCH] Fix that sometimes documents are opened in wrong split Task-number: QTCREATORBUG-6433 Change-Id: If1626c1a2c406af48a8d7c630c353e138a37aa2e Reviewed-by: David Schulz --- src/plugins/coreplugin/editormanager/editormanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 47f64a2d60d..b1c729c49b3 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