From 1b23a27acbc13f934b682400d1e1e9a027bd33a7 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Thu, 20 Jun 2019 22:24:03 -0700 Subject: [PATCH] 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 --- src/gui/torrentcontentmodelitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/torrentcontentmodelitem.cpp b/src/gui/torrentcontentmodelitem.cpp index bcec140b2..7f08e8b3f 100644 --- a/src/gui/torrentcontentmodelitem.cpp +++ b/src/gui/torrentcontentmodelitem.cpp @@ -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