mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user