Browse Source

- Added ASSERT for make sure our progress values are always possible

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
63e5339690
  1. 1
      src/torrentfilesmodel.h

1
src/torrentfilesmodel.h

@ -136,6 +136,7 @@ public: @@ -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…
Cancel
Save