suppress useless warning

(cherry picked from commit 982f97e48a)
This commit is contained in:
mae
2009-12-01 16:21:14 +01:00
committed by Thorbjørn Lindeijer
parent 19ac943c43
commit bb567ef622

View File

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