TorrentContentModel: Simplify progress update code

This commit is contained in:
Christophe Dumez
2012-08-26 18:45:41 +03:00
parent d849ac32f9
commit f3e465c142
3 changed files with 5 additions and 15 deletions

View File

@@ -73,10 +73,6 @@ void TorrentContentModelFile::setPriority(int new_prio, bool update_parent)
m_priority = new_prio;
// Reset progress if priority is 0
if (m_priority == 0)
setProgress(0);
// Update parent
if (update_parent) {
m_parentItem->updateSize();