Merge pull request #10839 from Piccirello/gui-files-table-file-size

Update remaining size of ignored files to 0
This commit is contained in:
Mike Tzou
2019-07-23 22:57:32 +08:00
committed by GitHub

View File

@@ -78,7 +78,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