mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 18:17:08 -07:00
TorrentContentModel code clean up
This commit is contained in:
parent
45ba858022
commit
38daa23be2
7 changed files with 20 additions and 16 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue