summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundoview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/util/qundoview.cpp')
-rw-r--r--src/widgets/util/qundoview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/util/qundoview.cpp b/src/widgets/util/qundoview.cpp
index 4b09d5fc70..a87e9e0f05 100644
--- a/src/widgets/util/qundoview.cpp
+++ b/src/widgets/util/qundoview.cpp
@@ -142,7 +142,8 @@ void QUndoModel::stackDestroyed(QObject *obj)
void QUndoModel::stackChanged()
{
- reset();
+ beginResetModel();
+ endResetModel();
m_sel_model->setCurrentIndex(selectedIndex(), QItemSelectionModel::ClearAndSelect);
}