OSDN Git Service

Text editor: Clear undo/redo stack after loading chunks
authorLeandro Melo <leandro.melo@nokia.com>
Mon, 7 Feb 2011 16:18:05 +0000 (17:18 +0100)
committerLeandro Melo <leandro.melo@nokia.com>
Mon, 7 Feb 2011 16:18:05 +0000 (17:18 +0100)
Reviewed-by: Thorbjorn Lindeijer
src/plugins/texteditor/basetextdocument.cpp

index 803dffe..a7f5328 100644 (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 =