Set "category" column as case-insensitive in TransferListSortModel.

(From what I can tell, it would appear that the sorting was already
case-insensitive by default.  This makes it explicit.)
This commit is contained in:
Frédéric Brière 2017-04-28 18:46:50 -04:00
parent ec08cb5445
commit f53a403a7b

View file

@ -74,6 +74,7 @@ void TransferListSortModel::disableTrackerFilter()
bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex &right) const bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
{ {
switch (sortColumn()) { switch (sortColumn()) {
case TorrentModel::TR_CATEGORY:
case TorrentModel::TR_NAME: { case TorrentModel::TR_NAME: {
QVariant vL = left.data(); QVariant vL = left.data();
QVariant vR = right.data(); QVariant vR = right.data();