mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Fix wrong data used for comparison
In torrent transfer list we should use underlying data for sorting, not displayed values. Closes #13818.
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
TransferListSortModel::TransferListSortModel(QObject *parent)
|
||||
: QSortFilterProxyModel {parent}
|
||||
{
|
||||
setSortRole(TransferListModel::UnderlyingDataRole);
|
||||
QMetaType::registerComparators<BitTorrent::TorrentState>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user