mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
More logic fixes
svn path=/trunk/KDE/kdebase/apps/; revision=744491
This commit is contained in:
parent
2766a17613
commit
028a0bd759
|
@ -115,9 +115,9 @@ int DolphinSortFilterProxyModel::compareCategories(const QModelIndex &left,
|
||||||
const QString rightTags = DolphinModel::tagsForIndex(right);
|
const QString rightTags = DolphinModel::tagsForIndex(right);
|
||||||
|
|
||||||
if (leftTags.isEmpty() && !rightTags.isEmpty())
|
if (leftTags.isEmpty() && !rightTags.isEmpty())
|
||||||
return -1;
|
|
||||||
else if (!leftTags.isEmpty() && rightTags.isEmpty())
|
|
||||||
return 1;
|
return 1;
|
||||||
|
else if (!leftTags.isEmpty() && rightTags.isEmpty())
|
||||||
|
return -1;
|
||||||
|
|
||||||
return naturalCompare(DolphinModel::tagsForIndex(left), DolphinModel::tagsForIndex(right)) < 0;
|
return naturalCompare(DolphinModel::tagsForIndex(left), DolphinModel::tagsForIndex(right)) < 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue