mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
TorrentContentModel: Simplify progress update code
This commit is contained in:
parent
d849ac32f9
commit
f3e465c142
3 changed files with 5 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue