forked from qt-creator/qt-creator
@@ -487,9 +487,9 @@ void EditorView::updateEditorHistory(IEditor *editor)
|
|||||||
void EditorView::addCurrentPositionToNavigationHistory(IEditor *editor, const QByteArray &saveState)
|
void EditorView::addCurrentPositionToNavigationHistory(IEditor *editor, const QByteArray &saveState)
|
||||||
{
|
{
|
||||||
if (editor && editor != currentEditor()) {
|
if (editor && editor != currentEditor()) {
|
||||||
qDebug() << Q_FUNC_INFO << "this should not happen!";
|
return; // we only save editor sate for the current editor, when the user interacts
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!editor)
|
if (!editor)
|
||||||
editor = currentEditor();
|
editor = currentEditor();
|
||||||
if (!editor)
|
if (!editor)
|
||||||
|
Reference in New Issue
Block a user