diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2010-04-06 17:59:08 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2010-05-26 14:27:40 (GMT) |
commit | cf1e3150247d6694e8c00b924627c66e798f2382 (patch) | |
tree | 4d51fd6f6f525a0d51f5b8eb583af8837ca72a57 /src/gui/itemviews | |
parent | 4837518d3161c77b4e811057d638dcbd22b89195 (diff) | |
download | Qt-cf1e3150247d6694e8c00b924627c66e798f2382.zip Qt-cf1e3150247d6694e8c00b924627c66e798f2382.tar.gz Qt-cf1e3150247d6694e8c00b924627c66e798f2382.tar.bz2 |
Fixes a proxymodel sorting odity.
Sort order was modified when sorted according to an empty column always
in the same order
Reviewed-by: Thierry
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qsortfilterproxymodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qsortfilterproxymodel.cpp b/src/gui/itemviews/qsortfilterproxymodel.cpp index b12cd45..f9b6b94 100644 --- a/src/gui/itemviews/qsortfilterproxymodel.cpp +++ b/src/gui/itemviews/qsortfilterproxymodel.cpp @@ -2392,7 +2392,7 @@ bool QSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex QVariant r = (right.model() ? right.model()->data(right, d->sort_role) : QVariant()); switch (l.userType()) { case QVariant::Invalid: - return (r.type() == QVariant::Invalid); + return (r.type() != QVariant::Invalid); case QVariant::Int: return l.toInt() < r.toInt(); case QVariant::UInt: |