[PATCH 5/7] Update apply button as appropriate after invoking dialogs. (#960254)

David Lehman dlehman at redhat.com
Wed May 15 18:39:43 UTC 2013


---
 pyanaconda/ui/gui/spokes/custom.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 71d4931..5325c9b 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -2184,6 +2184,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
             self.window.show_all()
             return
 
+        if set(disks) != self._device_disks:
+            self._applyButton.set_sensitive(True)
+
         self._device_disks = disks
         self._populate_raid(self._get_raid_level())
 
@@ -2240,7 +2243,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         if (set(disks) != set(self._device_disks) or
             name != container_name or
             dialog.raid_level != self._device_container_raid_level or
-            dialog.encrypted != self._device_container_encrypted):
+            dialog.encrypted != self._device_container_encrypted or
+            dialog.size_policy != self._device_container_size):
             self._applyButton.set_sensitive(True)
 
         log.debug("new container raid level: %s" % dialog.raid_level)
-- 
1.8.1.4



More information about the anaconda-patches mailing list