update current history position also when switching editors

This commit is contained in:
mae
2009-02-13 16:07:59 +01:00
parent 33e8783338
commit 799686602d

View File

@@ -475,6 +475,8 @@ void EditorManager::setCurrentEditor(IEditor *editor, bool ignoreNavigationHisto
setCurrentView(0);
if (m_d->m_currentEditor == editor)
return;
if (m_d->m_currentEditor)
updateCurrentPositionInNavigationHistory();
m_d->m_currentEditor = editor;
if (editor) {