mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
- Added ASSERT for make sure our progress values are always possible
This commit is contained in:
parent
d8c27ac8c4
commit
63e5339690
@ -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…
Reference in New Issue
Block a user