[PATCH 1/3] Disregard raid level combo when it isn't applicable. (#1022203)
David Lehman
dlehman at redhat.com
Wed Oct 23 18:57:21 UTC 2013
---
pyanaconda/ui/gui/spokes/custom.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 20c1777..3cefaf6 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -226,6 +226,10 @@ def validate_mountpoint(mountpoint, used_mountpoints, strict=True):
def selectedRaidLevel(raidLevelCombo):
"""Interpret the selection of a RAID level combo box."""
+ if not raidLevelCombo.get_property("visible"):
+ # the combo is hidden when raid level isn't applicable
+ return None
+
itr = raidLevelCombo.get_active_iter()
store = raidLevelCombo.get_model()
--
1.8.1.4
More information about the anaconda-patches
mailing list