Add 'unpaused' torrent filter

the inverse of paused because complete and active have an inverse
This commit is contained in:
John Sebastian Peterson
2014-12-21 21:05:39 +01:00
parent b5c00df107
commit 89f34b4ae7
5 changed files with 9 additions and 1 deletions

View File

@@ -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();