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:
Thomas Piccirello 2019-06-20 22:24:03 -07:00
parent 183db3475a
commit 1b23a27acb

View File

@ -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