Browse Source

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.)
adaptive-webui-19844
Frédéric Brière 8 years ago
parent
commit
f53a403a7b
  1. 1
      src/gui/transferlistsortmodel.cpp

1
src/gui/transferlistsortmodel.cpp

@ -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();

Loading…
Cancel
Save