Commits

Aleš Erjavec  committed 8284ca2

Fixed progress value update.

  • Participants
  • Parent commits 224a34d

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/OWBaseWidget.py

 
         """
         old = self.__progressBarValue
+        self.__progressBarValue = value
+
         if value > 0:
             if self.__progressState != 1:
                 warnings.warn("progressBarSet() called without a "
                 self.__progressState = 1
                 self.processingStateChanged.emit(1)
 
-            self.__progressBarValue = value
             usedTime = max(1, time.time() - self.startTime)
             totalTime = (100.0 * usedTime) / float(value)
             remainingTime = max(0, totalTime - usedTime)