Commit 4c8a7cfc authored by con's avatar con
Browse files

Add position to history when user closes an editor.

This hopefully brings the navigation history back to behaving sensibly.
parent 3d44c562
......@@ -650,7 +650,6 @@ void EditorManager::closeOtherEditors(IEditor *editor)
closeEditors(editors, true);
}
void EditorManager::closeOtherEditors()
{
IEditor *current = currentEditor();
......@@ -658,12 +657,10 @@ void EditorManager::closeOtherEditors()
closeOtherEditors(current);
}
// SLOT connected to action
// since this is potentially called in the event handler of the editor
// we simply postpone it with a single shot timer
void EditorManager::closeEditor()
{
addCurrentPositionToNavigationHistory();
closeEditor(m_d->m_currentEditor);
}
......
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