[PATCH rhel7-branch] network gui: make Configure button insensitive when no ap is selected (#1015212)

Radek Vykydal rvykydal at redhat.com
Mon Oct 21 13:46:53 UTC 2013


For not connected wireless AP combobox has no AP selected initially.
Allow configuration only when an AP to be configured had been chosen.

Resolves: rhbz#1015212
---
 pyanaconda/ui/gui/spokes/network.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 9887130..dc4499c 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -873,6 +873,7 @@ class NetworkControlBox(object):
             self.builder.get_object("label_wired_parent").hide()
         elif dev_type == NetworkManager.DeviceType.WIFI:
             notebook.set_current_page(1)
+            self.builder.get_object("button_wireless_options").set_sensitive(self.selected_ssid is not None)
 
     def _refresh_carrier_info(self):
         for i in self.builder.get_object("liststore_devices"):
-- 
1.7.11.7



More information about the anaconda-patches mailing list