diff options
author | Joel Granados Moreno <jgranado@redhat.com> | 2009-04-14 19:17:14 +0200 |
---|---|---|
committer | Joel Granados Moreno <jgranado@redhat.com> | 2009-04-15 10:28:25 +0200 |
commit | 7a57a408966bc2bbe1f6e9a8a0922f3636ef0e87 (patch) | |
tree | 4f184853d1a554328283ac2658aaabe63007d66b /iw | |
parent | 688f825e453422974e1f66368092022d8e941e7d (diff) | |
download | anaconda-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.py | 9 |
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 |