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

Merge pull request #6340 from Chocobo1/contentSort

Use case-insensitive comparsion for torrent content window
This commit is contained in:
sledgehammer999 2017-02-05 23:12:55 +02:00 committed by GitHub
commit bcd6baa793

View File

@ -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