mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07: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:
parent
8bee69c9fc
commit
8c48bf4a70
2 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,7 @@ TorrentContentFilterModel::TorrentContentFilterModel(QObject *parent)
|
|||
setFilterRole(TorrentContentModel::UnderlyingDataRole);
|
||||
setDynamicSortFilter(true);
|
||||
setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||
setSortRole(TorrentContentModel::UnderlyingDataRole);
|
||||
}
|
||||
|
||||
TorrentContentModel *TorrentContentFilterModel::model() const
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
TransferListSortModel::TransferListSortModel(QObject *parent)
|
||||
: QSortFilterProxyModel {parent}
|
||||
{
|
||||
setSortRole(TransferListModel::UnderlyingDataRole);
|
||||
QMetaType::registerComparators<BitTorrent::TorrentState>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue