Commit 62c41def authored by mae's avatar mae
Browse files

Fix remove-all-splits

Previously it was possible to end up with the wrong editor state
(the one from a duplicate editor), i.e. the cursor position
was wrong.
parent de068090
......@@ -1962,7 +1962,7 @@ void EditorManager::removeAllSplits()
IEditor *editor = m_d->m_currentEditor;
m_d->m_currentEditor = 0; // trigger update below
if (editor && m_d->m_editorModel->isDuplicate(editor))
editor = m_d->m_editorModel->originalForDuplicate(editor);
if (!editor)
editor = pickUnusedEditor();
Supports Markdown
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