mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 13:11:25 -07:00
Fix torrent content checkbox state under certain conditions
PR #22190. Closes #22189.
This commit is contained in:
parent
f8c48349a1
commit
05787d94ec
1 changed files with 3 additions and 1 deletions
|
@ -400,7 +400,9 @@ QVariant TorrentContentModel::data(const QModelIndex &index, const int role) con
|
|||
const bool hasIgnored = std::any_of(childItems.cbegin(), childItems.cend()
|
||||
, [](const TorrentContentModelItem *childItem)
|
||||
{
|
||||
return (childItem->priority() == BitTorrent::DownloadPriority::Ignored);
|
||||
const auto prio = childItem->priority();
|
||||
return ((prio == BitTorrent::DownloadPriority::Ignored)
|
||||
|| (prio == BitTorrent::DownloadPriority::Mixed));
|
||||
});
|
||||
|
||||
return hasIgnored ? Qt::PartiallyChecked : Qt::Checked;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue