[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Limit progress bar amount to 1.0



---
 pyanaconda/gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index ebd0085..0ef7ced 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -478,6 +478,9 @@ class ProgressWindow:
             delta -= 0.05
 
     def set (self, amount):
+        if amount > self.total:
+            amount = self.total
+
         # only update widget if we've changed by 5% or our timeout has
         # expired
         curval = self.progress.get_fraction()
-- 
1.7.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]