Fix that sometimes documents are opened in wrong split

Task-number: QTCREATORBUG-6433

Change-Id: If1626c1a2c406af48a8d7c630c353e138a37aa2e
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Eike Ziller
2013-06-14 15:51:35 +02:00
parent 677b3104e9
commit f3451e92a1

View File

@@ -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