Browse Source

Try to prevent flooding logs with nan warning

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc2
falkTX 5 years ago
parent
commit
a511bb259e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/frontend/widgets/paramspinbox.py

+ 1
- 1
source/frontend/widgets/paramspinbox.py View File

@@ -134,7 +134,7 @@ class ParamProgressBar(QProgressBar):
self.fMaximum = value self.fMaximum = value


def setValue(self, value): def setValue(self, value):
if self.fRealValue == value and self.fInitiated:
if (self.fRealValue == value or isnan(value)) and self.fInitiated:
return False return False


self.fInitiated = True self.fInitiated = True


Loading…
Cancel
Save