forked from qt-creator/qt-creator
update current history position also when switching editors
This commit is contained in:
@@ -475,6 +475,8 @@ void EditorManager::setCurrentEditor(IEditor *editor, bool ignoreNavigationHisto
|
|||||||
setCurrentView(0);
|
setCurrentView(0);
|
||||||
if (m_d->m_currentEditor == editor)
|
if (m_d->m_currentEditor == editor)
|
||||||
return;
|
return;
|
||||||
|
if (m_d->m_currentEditor)
|
||||||
|
updateCurrentPositionInNavigationHistory();
|
||||||
|
|
||||||
m_d->m_currentEditor = editor;
|
m_d->m_currentEditor = editor;
|
||||||
if (editor) {
|
if (editor) {
|
||||||
|
Reference in New Issue
Block a user