From c9b2e75de678d0b49d91c969b86e272ddfd1a964 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 16 Sep 2014 07:39:11 +0200 Subject: [PATCH] Recycle bin is now on bottom. --- src/core/feedsproxymodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/feedsproxymodel.cpp b/src/core/feedsproxymodel.cpp index 21be49c0b..21942bdd0 100755 --- a/src/core/feedsproxymodel.cpp +++ b/src/core/feedsproxymodel.cpp @@ -68,12 +68,12 @@ bool FeedsProxyModel::lessThan(const QModelIndex &left, } } else if (left_item->kind() == FeedsModelRootItem::RecycleBin) { - // Left item is recycle bin. Make sure it is "smaller" item if we have selected ascending order. - return sortOrder() == Qt::AscendingOrder; + // Left item is recycle bin. Make sure it is "biggest" item if we have selected ascending order. + return sortOrder() == Qt::DescendingOrder; } else if (right_item->kind() == FeedsModelRootItem::RecycleBin) { - // Right item is recycle bin. Make sure it is "biggest" item if we have selected descending order. - return sortOrder() == Qt::DescendingOrder; + // Right item is recycle bin. Make sure it is "smallest" item if we have selected descending order. + return sortOrder() == Qt::AscendingOrder; } else if (left_item->kind() == FeedsModelRootItem::Feed) { // Left item is feed, right item is category.