TorrentContentModel code clean up

This commit is contained in:
Christophe Dumez 2012-08-26 20:15:55 +03:00
commit 38daa23be2
7 changed files with 20 additions and 16 deletions

View file

@ -157,7 +157,10 @@ void TorrentContentModelFolder::updateProgress()
}
Q_ASSERT(total_done <= m_size);
setProgress(total_done);
if (total_done != m_totalDone) {
m_totalDone = total_done;
m_parentItem->updateProgress();
}
}
void TorrentContentModelFolder::updateSize()