[PATCH 1/1] Check to see if formatcb is None.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/partition_ui_helpers_gui.py |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index e505c02..b7b6b3d 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -398,7 +398,8 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
         resizeOptionCB(resizecb, resizesb)
         row = row + 1
 
-        formatcb.connect("toggled", formatOptionResizeCB, (resizesb, origfs))
+        if formatcb:
+            formatcb.connect("toggled", formatOptionResizeCB, (resizesb, origfs))
 
     if luksdev:
         lukscb.set_active(1)
@@ -406,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
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux