summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-10 15:07:40 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-10 15:07:40 (GMT)
commitd7c2a9065f05845a7378e77ddc41b63b8dff6d1c (patch)
tree55513f65eaff73e8d88702d0a6b684a58d09d95a /src/gui
parent3308925558677f1882f1c70ef6b86f8a83fa8b65 (diff)
downloadQt-d7c2a9065f05845a7378e77ddc41b63b8dff6d1c.zip
Qt-d7c2a9065f05845a7378e77ddc41b63b8dff6d1c.tar.gz
Qt-d7c2a9065f05845a7378e77ddc41b63b8dff6d1c.tar.bz2
Fixed regression.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/qtextdocument_p.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/text/qtextdocument_p.cpp b/src/gui/text/qtextdocument_p.cpp
index b36642b..e2fdf0e 100644
--- a/src/gui/text/qtextdocument_p.cpp
+++ b/src/gui/text/qtextdocument_p.cpp
@@ -260,7 +260,7 @@ void QTextDocumentPrivate::clear()
title.clear();
undoState = 0;
- clearUndoRedoStacks(QTextDocument::UndoStack);
+ clearUndoRedoStacks(QTextDocument::RedoStack);
text = QString();
unreachableCharacterCount = 0;
modifiedState = 0;
@@ -292,7 +292,7 @@ QTextDocumentPrivate::~QTextDocumentPrivate()
cursors.clear();
undoState = 0;
undoEnabled = true;
- clearUndoRedoStacks(QTextDocument::UndoStack);
+ clearUndoRedoStacks(QTextDocument::RedoStack);
}
void QTextDocumentPrivate::setLayout(QAbstractTextDocumentLayout *layout)
@@ -1027,7 +1027,7 @@ void QTextDocumentPrivate::appendUndoItem(const QTextUndoCommand &c)
if (!undoEnabled)
return;
if (undoState < undoStack.size())
- clearUndoRedoStacks(QTextDocument::UndoStack);
+ clearUndoRedoStacks(QTextDocument::RedoStack);
if (!undoStack.isEmpty() && modified) {
QTextUndoCommand &last = undoStack[undoState - 1];
@@ -1117,7 +1117,7 @@ void QTextDocumentPrivate::enableUndoRedo(bool enable)
if (!enable) {
undoState = 0;
- clearUndoRedoStacks(QTextDocument::UndoStack);
+ clearUndoRedoStacks(QTextDocument::RedoStack);
emitUndoAvailable(false);
emitRedoAvailable(false);
}