diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-02-26 14:08:28 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-02-26 14:08:28 (GMT) |
commit | 13df3749820f3fd1847e4359b302da052eef5137 (patch) | |
tree | db41c1812b9163eb77b4f2ecaa57c3fae3688b3f /src/gui/itemviews | |
parent | c815fd0a6426e43aa9efd861888888aa4d5b233b (diff) | |
download | Qt-13df3749820f3fd1847e4359b302da052eef5137.zip Qt-13df3749820f3fd1847e4359b302da052eef5137.tar.gz Qt-13df3749820f3fd1847e4359b302da052eef5137.tar.bz2 |
QAbstractItemView::setIndexWidget: remove the old widget from the QSet of persistent editors
Task-number: QTBUG-8422
Reviewed-by: Thierry
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index adf3ce3..2c4d9b7 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -3014,6 +3014,7 @@ void QAbstractItemView::setIndexWidget(const QModelIndex &index, QWidget *widget if (!d->isIndexValid(index)) return; if (QWidget *oldWidget = indexWidget(index)) { + d->persistent.remove(oldWidget); d->removeEditor(oldWidget); oldWidget->deleteLater(); } |