summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-05-04 16:15:35 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-05-05 13:38:03 (GMT)
commit78660bf18ec11e043f1c88d711f62d32237bd0e5 (patch)
tree545f1205a9aaa9cdf71d71a9020963d18a883909 /src
parentc1c7dbf2a066868503dfabcd7113856fa6d2e457 (diff)
downloadQt-78660bf18ec11e043f1c88d711f62d32237bd0e5.zip
Qt-78660bf18ec11e043f1c88d711f62d32237bd0e5.tar.gz
Qt-78660bf18ec11e043f1c88d711f62d32237bd0e5.tar.bz2
QSortFilterProxyModel: Warning or assert failure
A mapping was being created after QStandardItem::dataChanged() signal, even though one of the item's ancestors was being filtered out by the filter proxy. This let the QSortFilterProxyModel in a unstable state, triggering warnings and failing asserts. This patch partialy reverts commit f4bce41c10988. Auto-test included. Reviewed-by: mbm Task-number: QTBUG-10287
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemviews/qsortfilterproxymodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qsortfilterproxymodel.cpp b/src/gui/itemviews/qsortfilterproxymodel.cpp
index dce5c6a..b12cd45 100644
--- a/src/gui/itemviews/qsortfilterproxymodel.cpp
+++ b/src/gui/itemviews/qsortfilterproxymodel.cpp
@@ -1099,7 +1099,7 @@ void QSortFilterProxyModelPrivate::_q_sourceDataChanged(const QModelIndex &sourc
if (!source_top_left.isValid() || !source_bottom_right.isValid())
return;
QModelIndex source_parent = source_top_left.parent();
- IndexMap::const_iterator it = create_mapping(source_parent);
+ IndexMap::const_iterator it = source_index_mapping.find(source_parent);
if (it == source_index_mapping.constEnd()) {
// Don't care, since we don't have mapping for this index
return;