mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe Use QBT_USES_QT5 define
This commit is contained in:
@@ -80,7 +80,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex
|
||||
if (!vL.isValid() || !vR.isValid() || (vL == vR))
|
||||
return lowerPositionThan(left, right);
|
||||
|
||||
return Utils::String::naturalCompare(vL.toString(), vR.toString());
|
||||
return Utils::String::naturalCompareCaseSensitive(vL.toString(), vR.toString());
|
||||
}
|
||||
|
||||
case TorrentModel::TR_ADD_DATE:
|
||||
|
||||
Reference in New Issue
Block a user