summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-09-28 16:13:07 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-09-28 16:13:07 (GMT)
commitd49a7e382c69076de179103c9072e49a72db264d (patch)
treed5237a64483ddeaf25b6a09edecba0aad7011b65 /src
parentc79a78b7f48ba806c578e7213d4cdcda00f9ea17 (diff)
parent5784f5e0f85e7aad57aab8883f55157586b36804 (diff)
downloadQt-d49a7e382c69076de179103c9072e49a72db264d.zip
Qt-d49a7e382c69076de179103c9072e49a72db264d.tar.gz
Qt-d49a7e382c69076de179103c9072e49a72db264d.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Fix tst_qsorftfilterproxymodel after 893cd4dd6eb64 An an assert when a QModelIndex from the wrong model is used with QSFPM.
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemviews/qsortfilterproxymodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qsortfilterproxymodel.cpp b/src/gui/itemviews/qsortfilterproxymodel.cpp
index dc8d938..fe866e5 100644
--- a/src/gui/itemviews/qsortfilterproxymodel.cpp
+++ b/src/gui/itemviews/qsortfilterproxymodel.cpp
@@ -362,6 +362,7 @@ QModelIndex QSortFilterProxyModelPrivate::proxy_to_source(const QModelIndex &pro
return QModelIndex(); // for now; we may want to be able to set a root index later
if (proxy_index.model() != q_func()) {
qWarning() << "QSortFilterProxyModel: index from wrong model passed to mapToSource";
+ Q_ASSERT(!"QSortFilterProxyModel: index from wrong model passed to mapToSource");
return QModelIndex();
}
IndexMap::const_iterator it = index_to_iterator(proxy_index);
@@ -379,6 +380,7 @@ QModelIndex QSortFilterProxyModelPrivate::source_to_proxy(const QModelIndex &sou
return QModelIndex(); // for now; we may want to be able to set a root index later
if (source_index.model() != model) {
qWarning() << "QSortFilterProxyModel: index from wrong model passed to mapFromSource";
+ Q_ASSERT(!"QSortFilterProxyModel: index from wrong model passed to mapFromSource");
return QModelIndex();
}
QModelIndex source_parent = source_index.parent();