[PATCH master] Network spoke: make Configure button insensitive when running nmce (#865931)

Vratislav Podzimek vpodzime at redhat.com
Mon Oct 15 07:09:53 UTC 2012


On Sun, 2012-10-14 at 11:26 +0200, Radek Vykydal wrote:
> ---
>  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")
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list