[PATCH rhel7-branch] network GUI: don't crash when wifi is activated in standalone spoke (#1046138)

Radek Vykydal rvykydal at redhat.com
Fri Jan 3 14:41:20 UTC 2014


Resolves: rhbz#1046138

These connections are handled is scope of respective wireless device
configuration (device treeview item) in the spoke (active ap connection is used
when applying to ksdata).
---
 pyanaconda/ui/gui/spokes/network.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 6a59b02..0c9dfdc 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -435,6 +435,10 @@ class NetworkControlBox(GObject.GObject):
                 # this must be some slave.
                 if dev_cfg.device_type == NetworkManager.DeviceType.ETHERNET:
                     continue
+                # Wireless settings are handled in scope of its device's dev_cfg
+                if dev_cfg.device_type == NetworkManager.DeviceType.WIFI:
+                    continue
+                # Virtual device settings (bond, team, vlan, ...)
                 self.add_dev_cfg(dev_cfg)
 
         # select the first device
-- 
1.7.11.7



More information about the anaconda-patches mailing list