From 4b6de71fd06f146fe92c26d03c2c37017557acd9 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 12 Jul 2013 13:33:39 +0200 Subject: [PATCH] Fix issues with having same document open in multiple splits Sometimes one split would not show the document even though it shows in the combo box. Task-number: QTCREATORBUG-9801 Task-number: QTCREATORBUG-9798 Change-Id: Iea79c6f3deb4f1570685794c6eb762f603a36b5f Reviewed-by: Eike Ziller --- src/plugins/coreplugin/editormanager/editormanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 56a5131be6f..c3d04a6a2ce 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1335,6 +1335,8 @@ Core::IEditor *EditorManager::activateEditor(Core::Internal::EditorView *view, C ICore::raiseWindow(editor->widget()); } } + } else if (!(flags & DoNotMakeVisible)) { + view->setCurrentEditor(editor); } return editor; }