From 976504498ad1d243fe69cf622b6422bdeefb5c16 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 3 Feb 2017 23:39:03 +0800 Subject: [PATCH] Use case-insensitive comparsion for torrent content window. Closes #6327 --- src/gui/torrentcontentfiltermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/torrentcontentfiltermodel.cpp b/src/gui/torrentcontentfiltermodel.cpp index a11e9b951..2583760e7 100644 --- a/src/gui/torrentcontentfiltermodel.cpp +++ b/src/gui/torrentcontentfiltermodel.cpp @@ -90,7 +90,7 @@ bool TorrentContentFilterModel::lessThan(const QModelIndex &left, const QModelIn TorrentContentModelItem::ItemType rightType = m_model->itemType(m_model->index(right.row(), 0, right.parent())); if (leftType == rightType) - return Utils::String::naturalCompareCaseSensitive(vL, vR); + return Utils::String::naturalCompareCaseInsensitive(vL, vR); else if (leftType == TorrentContentModelItem::FolderType && sortOrder() == Qt::AscendingOrder) return true; else