Commit 19bfd1bc authored by David Schulz's avatar David Schulz Committed by Eike Ziller

Editor: Fix crash on switching sessions.

Task-number: QTCREATORBUG-9220

Change-Id: I0671eaa1e9785ee0327bc8cbd4519c5d696ea0ca
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 629c1300
......@@ -2247,7 +2247,8 @@ void EditorManager::removeAllSplits()
d->m_splitter->unsplitAll();
if (!editor)
editor = pickUnusedEditor();
activateEditor(editor);
if (editor)
activateEditor(editor);
}
void EditorManager::gotoOtherSplit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment