Text editor: Clear undo/redo stack after loading chunks

Reviewed-by: Thorbjorn Lindeijer
This commit is contained in:
Leandro Melo
2011-02-07 17:18:05 +01:00
parent 841a228507
commit 9ef40349d9

View File

@@ -531,6 +531,7 @@ bool BaseTextDocument::open(const QString &fileName)
interface.setProgressValue(i + 1);
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
}
d->m_document->clearUndoRedoStacks();
interface.reportFinished();
}
BaseTextDocumentLayout *documentLayout =