diff options
author | Pierre Rossi <pierre.rossi@nokia.com> | 2009-10-14 09:30:43 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2009-10-14 09:35:25 (GMT) |
commit | f151424797794cba5a3fdaf628eabaa75a5e7801 (patch) | |
tree | 119a58e279f4866ede9f63e5b8947cc01068a737 /src/gui/itemviews/qtreewidget.cpp | |
parent | 4ee954db7f99ba7021b4b825852fe56c3bcb022c (diff) | |
download | Qt-f151424797794cba5a3fdaf628eabaa75a5e7801.zip Qt-f151424797794cba5a3fdaf628eabaa75a5e7801.tar.gz Qt-f151424797794cba5a3fdaf628eabaa75a5e7801.tar.bz2 |
Make the autotest pass for descending order in QTableWidget
It failed after this commit:
19030e2af098e319e3c3f3883c51e28364bf3ccf
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews/qtreewidget.cpp')
-rw-r--r-- | src/gui/itemviews/qtreewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtreewidget.cpp b/src/gui/itemviews/qtreewidget.cpp index 06342d8..040c498 100644 --- a/src/gui/itemviews/qtreewidget.cpp +++ b/src/gui/itemviews/qtreewidget.cpp @@ -623,7 +623,7 @@ void QTreeModel::ensureSorted(int column, Qt::SortOrder order, lit = sortedInsertionIterator(lit, lst.end(), order, item); int newRow = qMax(lit - lst.begin(), 0); - if ((newRow < oldRow) && !(*item < *lst.at(oldRow - 1))) + if ((newRow < oldRow) && !(*item < *lst.at(oldRow - 1)) && !(*lst.at(oldRow - 1) < *item )) newRow = oldRow; lit = lst.insert(lit, item); |