mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Simplify TorrentContentModel code
This commit is contained in:
parent
f3e465c142
commit
5fe5c4d147
4 changed files with 5 additions and 18 deletions
|
@ -170,5 +170,9 @@ void TorrentContentModelFolder::updateSize()
|
|||
if (child->priority() != prio::IGNORED)
|
||||
size += child->size();
|
||||
}
|
||||
setSize(size);
|
||||
|
||||
if (size != m_size) {
|
||||
m_size = size;
|
||||
m_parentItem->updateSize();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue