┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-12-03 19:44:08 +0000
committerRafael Fernández López <[email protected]>2007-12-03 19:44:08 +0000
commit028a0bd759f8292b3ff4557c7ceea373edd887ea (patch)
tree883955c7eb9743a2236cd4f7140d40b04344dd62 /src
parent2766a176136e3851ed4093f9c20c6a4e71332554 (diff)
More logic fixes
svn path=/trunk/KDE/kdebase/apps/; revision=744491
Diffstat (limited to 'src')
-rw-r--r--src/dolphinsortfilterproxymodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp
index 95fb3854d..79d1e2f06 100644
--- a/src/dolphinsortfilterproxymodel.cpp
+++ b/src/dolphinsortfilterproxymodel.cpp
@@ -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;
}