mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Update torrent status filter counters consistently
PR #17097. Closes #15981. Closes #16490.
This commit is contained in:
committed by
GitHub
parent
2c9e1d942b
commit
4f62900cd3
@@ -157,6 +157,7 @@ bool TorrentFilter::matchState(const BitTorrent::Torrent *const torrent) const
|
||||
switch (m_type)
|
||||
{
|
||||
case All:
|
||||
default:
|
||||
return true;
|
||||
case Downloading:
|
||||
return torrent->isDownloading();
|
||||
@@ -185,8 +186,6 @@ bool TorrentFilter::matchState(const BitTorrent::Torrent *const torrent) const
|
||||
|| (torrent->state() == BitTorrent::TorrentState::CheckingResumeData);
|
||||
case Errored:
|
||||
return torrent->isErrored();
|
||||
default: // All
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user