[PATCH 2/2] Take device type into account when making the config button sensitive (#885051).

Chris Lumens clumens at redhat.com
Fri Dec 7 19:17:30 UTC 2012


We were doing this elsewhere, but not when a selector was clicked on.
---
 pyanaconda/ui/gui/spokes/custom.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 8a326c8..41d089d 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -2157,7 +2157,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         selector.set_chosen(True)
         self._current_selector = selector
 
-        self._configButton.set_sensitive(not selector._device.protected)
+        self._configButton.set_sensitive(not selector._device.protected and
+                                         getDeviceType(selector._device) != DEVICE_TYPE_LVM)
         self._removeButton.set_sensitive(not selector._device.protected)
         return True
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list