[PATCH 1/4] Fix marking the "Modify Software Selection" button as sensitive in one case.

Chris Lumens clumens at redhat.com
Mon Oct 8 20:18:41 UTC 2012


When the custom checkbox is selected, we need to make sure the software spoke
is ready when deciding whether the Modify button is sensitive or not.
---
 pyanaconda/ui/gui/spokes/storage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 3498517..537781a 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -246,7 +246,7 @@ class InstallOptions2Dialog(InstallOptions1Dialog):
     def on_custom_toggled(self, checkbutton):
         super(InstallOptions2Dialog, self).on_custom_toggled(checkbutton)
         self.builder.get_object("options2_cancel_button").set_sensitive(not self.custom)
-        self.builder.get_object("options2_modify_sw_button").set_sensitive(not self.custom)
+        self.builder.get_object("options2_modify_sw_button").set_sensitive(not self.custom and self._software_is_ready())
 
 class InstallOptions3Dialog(InstallOptions1Dialog):
     builderObjects = ["options3_dialog"]
-- 
1.7.11.2



More information about the anaconda-patches mailing list