diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index ad31e04ea98..c41a3a880eb 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1356,7 +1356,6 @@ IEditor *EditorManagerPrivate::placeEditor(EditorView *view, IEditor *editor) // pull the IEditor over to the new view sourceView->removeEditor(editor); view->addEditor(editor); - view->setCurrentEditor(editor); // possibly adapts old state to new layout editor->restoreState(state); if (!sourceView->currentEditor()) { @@ -1375,7 +1374,6 @@ IEditor *EditorManagerPrivate::placeEditor(EditorView *view, IEditor *editor) } } view->addEditor(editor); - view->setCurrentEditor(editor); // possibly adapts old state to new layout editor->restoreState(state); return editor;