Browse Source

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
adaptive-webui-19844
Thomas Piccirello 6 years ago
parent
commit
1b23a27acb
  1. 2
      src/gui/torrentcontentmodelitem.cpp

2
src/gui/torrentcontentmodelitem.cpp

@ -76,7 +76,7 @@ qreal TorrentContentModelItem::progress() const @@ -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…
Cancel
Save