mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
Merge pull request #13820 from Chocobo1/sorting
Fix wrong data used for comparison
This commit is contained in:
commit
84623ac1f6
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…
Reference in a new issue