Simplify TorrentContentModel code

This commit is contained in:
Christophe Dumez 2012-08-26 19:49:29 +03:00
commit 5fe5c4d147
4 changed files with 5 additions and 18 deletions

View file

@ -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();
}
}