Commit b4b29a5f authored by Rafael Fernández López's avatar Rafael Fernández López
Browse files

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
parent 993e6b92
......@@ -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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment