[PATCH master] Network spoke: make Configure button insensitive when running nmce (#865931)
Radek Vykydal
rvykydal at redhat.com
Sun Oct 14 09:26:22 UTC 2012
---
pyanaconda/ui/gui/spokes/network.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index a3fbf87..c2fcf8b 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -428,7 +428,13 @@ class NetworkControlBox():
else:
return
- subprocess.Popen(["nm-connection-editor", "--edit", "%s" % uuid])
+ self.builder.get_object("button_wired_options").set_sensitive(False)
+ proc = subprocess.Popen(["nm-connection-editor", "--edit", "%s" % uuid])
+
+ GLib.child_watch_add(proc.pid, self.on_nmce_exited)
+
+ def on_nmce_exited(self, pid, condition):
+ self.builder.get_object("button_wired_options").set_sensitive(True)
def on_wireless_enabled(self, *args):
switch = self.builder.get_object("device_wireless_off_switch")
--
1.7.4
More information about the anaconda-patches
mailing list