[PATCH 2/2] Compare Sizes to Sizes in the reclaim dialog (#913484).

Chris Lumens clumens at redhat.com
Thu Feb 21 14:19:53 UTC 2013


---
 pyanaconda/ui/gui/spokes/lib/resize.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index ff6e014..c44664e 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -371,7 +371,8 @@ class ResizeDialog(GUIObject):
         self._update_labels(selectedReclaimable=self._selectedReclaimableSpace+delta)
 
         # And then the reclaim button, in case they've made enough space.
-        self._update_reclaim_button(self._selectedReclaimableSpace+delta)
+        newTotal = self._selectedReclaimableSpace + delta
+        self._update_reclaim_button(Size(spec="%s MB" % newTotal))
 
     def resize_slider_format(self, scale, value):
         # This makes the value displayed under the slider prettier than just a
-- 
1.8.1.2



More information about the anaconda-patches mailing list