mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Added ASSERT for make sure our progress values are always possible
This commit is contained in:
parent
d8c27ac8c4
commit
63e5339690
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ public:
|
|||
|
||||
void setProgress(float progress) {
|
||||
if(progress == getProgress()) return;
|
||||
Q_ASSERT(progress >= 0. && progress <= 1.);
|
||||
itemData.replace(2, progress);
|
||||
if(parentItem)
|
||||
parentItem->updateProgress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue