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