forked from qt-creator/qt-creator
Editor: Remove dead code from EditorManager
Change-Id: I1f913177b964440592bf5954c1cd3a46cba2b139 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user