mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
- Added ASSERT for make sure our progress values are always possible
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user