summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJoel Granados Moreno <jgranado@redhat.com>2009-04-14 19:17:14 +0200
committerJoel Granados Moreno <jgranado@redhat.com>2009-04-15 10:28:25 +0200
commit7a57a408966bc2bbe1f6e9a8a0922f3636ef0e87 (patch)
tree4f184853d1a554328283ac2658aaabe63007d66b /iw
parent688f825e453422974e1f66368092022d8e941e7d (diff)
downloadanaconda-7a57a408966bc2bbe1f6e9a8a0922f3636ef0e87.tar.gz
anaconda-7a57a408966bc2bbe1f6e9a8a0922f3636ef0e87.tar.xz
anaconda-7a57a408966bc2bbe1f6e9a8a0922f3636ef0e87.zip
Check to see if formatcb is None.
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_ui_helpers_gui.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index edc43222d..b7b6b3dbd 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -407,8 +407,13 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
else:
lukscb.set_data("encrypted", 0)
- lukscb.set_sensitive(formatcb.get_active())
- lukscb.set_data("formatstate", formatcb.get_active())
+ if formatcb:
+ lukscb.set_sensitive(formatcb.get_active())
+ lukscb.set_data("formatstate", formatcb.get_active())
+ else:
+ lukscb.set_sensitive(0)
+ lukscb.set_data("formatstate", 0)
+
rc["lukscb"] = lukscb
maintable.attach(lukscb, 0, 2, row, row + 1)
row = row + 1