mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Add 'unpaused' torrent filter
the inverse of paused because complete and active have an inverse
This commit is contained in:
@@ -222,6 +222,9 @@ bool TransferListSortModel::matchStatusFilter(int sourceRow, const QModelIndex &
|
||||
case TorrentFilter::PAUSED:
|
||||
return (state == TorrentModelItem::STATE_PAUSED_UP || state == TorrentModelItem::STATE_PAUSED_DL);
|
||||
|
||||
case TorrentFilter::UNPAUSED:
|
||||
return (state != TorrentModelItem::STATE_PAUSED_UP && state != TorrentModelItem::STATE_PAUSED_DL);
|
||||
|
||||
case TorrentFilter::ACTIVE:
|
||||
if (state == TorrentModelItem::STATE_STALLED_DL) {
|
||||
const qulonglong up_speed = model->index(sourceRow, TorrentModelItem::TR_UPSPEED, sourceParent).data().toULongLong();
|
||||
|
||||
Reference in New Issue
Block a user