More logic fixes

svn path=/trunk/KDE/kdebase/apps/; revision=744491
This commit is contained in:
Rafael Fernández López 2007-12-03 19:44:08 +00:00
parent 2766a17613
commit 028a0bd759

View file

@ -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;
}