mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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
This commit is contained in:
parent
4bf98b3386
commit
b2117596b6
1 changed files with 3 additions and 2 deletions
|
@ -128,8 +128,9 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
|
||||||
QString leftStr = leftData.toString();
|
QString leftStr = leftData.toString();
|
||||||
QString rightStr = rightData.toString();
|
QString rightStr = rightData.toString();
|
||||||
|
|
||||||
// We don't care about case for building categories
|
// We don't care about case for building categories. We also don't
|
||||||
return naturalCompare(leftStr.toLower(), rightStr.toLower()) < 0;
|
// want here to compare by a natural comparation
|
||||||
|
return leftStr.toLower() < rightStr.toLower();
|
||||||
}
|
}
|
||||||
else if (sortRole() == DolphinView::SortBySize) // If we are sorting by size
|
else if (sortRole() == DolphinView::SortBySize) // If we are sorting by size
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue