diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index be364de7650..45fc900f183 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1250,11 +1250,8 @@ IEditor *EditorManagerPrivate::activateEditor(EditorView *view, IEditor *editor, { Q_ASSERT(view); - if (!editor) { - if (!d->m_currentEditor) - setCurrentEditor(0, (flags & EditorManager::IgnoreNavigationHistory)); - return 0; - } + if (!editor) + return nullptr; editor = placeEditor(view, editor);