Editor: Remove dead code from EditorManager

Change-Id: I1f913177b964440592bf5954c1cd3a46cba2b139
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2017-11-21 13:07:04 +01:00
parent cbc9b61f19
commit 99309389f6

View File

@@ -1250,11 +1250,8 @@ IEditor *EditorManagerPrivate::activateEditor(EditorView *view, IEditor *editor,
{ {
Q_ASSERT(view); Q_ASSERT(view);
if (!editor) { if (!editor)
if (!d->m_currentEditor) return nullptr;
setCurrentEditor(0, (flags & EditorManager::IgnoreNavigationHistory));
return 0;
}
editor = placeEditor(view, editor); editor = placeEditor(view, editor);