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

Re: [PATCH 17/22] Disable [Configure Network] button if there are no net devices.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Tue, 27 Apr 2010, Radek Vykydal wrote:

---
iw/network_gui.py |    5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index 0d28d0c..15fdf34 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -49,7 +49,10 @@ class NetworkWindow(InstallWindow):
        self.hostnameEntry = self.xml.get_widget("hostnameEntry")
        self.hostnameEntry.set_text(self.hostname)

-        self.xml.get_widget("netconfButton").connect("clicked", self._setupNetwork)
+        self.netconfButton = self.xml.get_widget("netconfButton")
+        self.netconfButton.connect("clicked", self._setupNetwork)
+        if len(self.anaconda.network.netdevices) == 0:
+            self.netconfButton.set_sensitive(False)

        # pressing Enter in confirm == clicking Next
        self.hostnameEntry.connect("activate",


- -- David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvfkOkACgkQ5hsjjIy1VkkICgCbBl93yGCaOYTnMJ4Prazrtdel
brAAoOM7VZ0bxiuG9RZKYYWaH407tVvi
=tQqt
-----END PGP SIGNATURE-----


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