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);
|
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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user