┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-06-18 09:37:41 +0000
committerRafael Fernández López <[email protected]>2007-06-18 09:37:41 +0000
commitb2117596b6fa61dfcc5a0a02fec95e2da3fd70ea (patch)
treea3502289563ca9787981b08e9ff74b08cba8f43a
parent4bf98b33866f92685719842092b9499c50fea4f2 (diff)
Avoid category building problems by removing the natural comparation
from here. Is not needed here. Is needed when sorting items inside categories. svn path=/trunk/KDE/kdebase/apps/; revision=677022
-rw-r--r--src/dolphinsortfilterproxymodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp
index 2860e213f..363140fc5 100644
--- a/src/dolphinsortfilterproxymodel.cpp
+++ b/src/dolphinsortfilterproxymodel.cpp
@@ -128,8 +128,9 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
QString leftStr = leftData.toString();
QString rightStr = rightData.toString();
- // We don't care about case for building categories
- return naturalCompare(leftStr.toLower(), rightStr.toLower()) < 0;
+ // We don't care about case for building categories. We also don't
+ // want here to compare by a natural comparation
+ return leftStr.toLower() < rightStr.toLower();
}
else if (sortRole() == DolphinView::SortBySize) // If we are sorting by size
{