[PATCH 5/7] Handle instances where migrate is not possible.

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

 



If we're dealing with a non-migratable filesystem, othercb and
othercombo will be None here.
---
 iw/partition_ui_helpers_gui.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 4179ab9..87d816f 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -252,8 +252,12 @@ def formatOptionResizeCB(widget, resizesb):
 def formatMigrateOptionCB(widget, data):
     (combowidget, mntptcombo, ofstype, lukscb, othercombo, othercb) = data
     combowidget.set_sensitive(widget.get_active())
-    othercb.set_sensitive(not widget.get_active())
-    othercombo.set_sensitive(not widget.get_active())
+
+    if othercb is not None:
+        othercb.set_sensitive(not widget.get_active())
+
+    if othercombo is not None:
+        othercombo.set_sensitive(not widget.get_active())
 
     if lukscb is not None:
         lukscb.set_data("formatstate", widget.get_active())
-- 
1.6.1.3

_______________________________________________
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