mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Update remaining size of ignored files to 0
Also fixes a bug where ignoring the last item within a folder wouldn't recalculate the folder's size
This commit is contained in:
parent
183db3475a
commit
1b23a27acb
@ -76,7 +76,7 @@ qreal TorrentContentModelItem::progress() const
|
||||
qulonglong TorrentContentModelItem::remaining() const
|
||||
{
|
||||
Q_ASSERT(!isRootItem());
|
||||
return m_remaining;
|
||||
return (m_priority == BitTorrent::DownloadPriority::Ignored) ? 0 : m_remaining;
|
||||
}
|
||||
|
||||
qreal TorrentContentModelItem::availability() const
|
||||
|
Loading…
Reference in New Issue
Block a user