]> cloud.milkyroute.net Git - dolphin.git/commitdiff
More logic fixes
authorRafael Fernández López <ereslibre@kde.org>
Mon, 3 Dec 2007 19:44:08 +0000 (19:44 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Mon, 3 Dec 2007 19:44:08 +0000 (19:44 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=744491

src/dolphinsortfilterproxymodel.cpp

index 95fb3854d7f516c4ca89e70f14b890857351e982..79d1e2f06728d7b0bb0e93656f0c5008c6323291 100644 (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;
     }