1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Fix sorting of country flags column in Peers tab.

This commit is contained in:
sledgehammer999 2017-12-21 02:49:29 +02:00
parent b8277614ec
commit 5156399c68
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2

View File

@ -53,17 +53,11 @@ protected:
const QString strL = left.data().toString(); const QString strL = left.data().toString();
const QString strR = right.data().toString(); const QString strR = right.data().toString();
const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive); const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive);
if (result != 0) return (result < 0);
return (result < 0); }
return (left < right);
}
break; break;
default: default:
if (left.data() != right.data()) return QSortFilterProxyModel::lessThan(left, right);
return QSortFilterProxyModel::lessThan(left, right);
return (left < right);
}; };
} }
}; };