1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Merge pull request #5858 from yezezey/case_insensitive

Sort torrent names case insensitively
This commit is contained in:
sledgehammer999 2016-11-06 23:55:57 +02:00 committed by GitHub
commit 9b760a8fa0

View File

@ -80,7 +80,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex
if (!vL.isValid() || !vR.isValid() || (vL == vR)) if (!vL.isValid() || !vR.isValid() || (vL == vR))
return lowerPositionThan(left, right); return lowerPositionThan(left, right);
return Utils::String::naturalCompareCaseSensitive(vL.toString(), vR.toString()); return Utils::String::naturalCompareCaseInsensitive(vL.toString(), vR.toString());
} }
case TorrentModel::TR_ADD_DATE: case TorrentModel::TR_ADD_DATE: