]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Avoid category building problems by removing the natural comparation
authorRafael Fernández López <ereslibre@kde.org>
Mon, 18 Jun 2007 09:37:41 +0000 (09:37 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Mon, 18 Jun 2007 09:37:41 +0000 (09:37 +0000)
from here. Is not needed here. Is needed when sorting items inside
categories.

svn path=/trunk/KDE/kdebase/apps/; revision=677022

src/dolphinsortfilterproxymodel.cpp

index 2860e213f176bac5ab196d717a24f7a74b28f7e3..363140fc53aa56c0ab3765c6036c7d738806fa1d 100644 (file)
@@ -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
     {