From 028a0bd759f8292b3ff4557c7ceea373edd887ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Mon, 3 Dec 2007 19:44:08 +0000 Subject: [PATCH] More logic fixes svn path=/trunk/KDE/kdebase/apps/; revision=744491 --- src/dolphinsortfilterproxymodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp index 95fb3854d7..79d1e2f067 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; }