mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +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) {
|
void setProgress(float progress) {
|
||||||
if(progress == getProgress()) return;
|
if(progress == getProgress()) return;
|
||||||
|
Q_ASSERT(progress >= 0. && progress <= 1.);
|
||||||
itemData.replace(2, progress);
|
itemData.replace(2, progress);
|
||||||
if(parentItem)
|
if(parentItem)
|
||||||
parentItem->updateProgress();
|
parentItem->updateProgress();
|
||||||
|
Loading…
Reference in New Issue
Block a user