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

Re: [PATCH 15/22] Check return value 2 we get when cancelling a dialog (#520146).



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

Instead of '2', you should add the correct gtk.RESPONSE_* object.  Also, this
patch should be rolled in with the one that introduces
selectNetDevicesDialog()

On Tue, 27 Apr 2010, Radek Vykydal wrote:

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

diff --git a/iw/network_gui.py b/iw/network_gui.py
index b671fa2..00cb1d9 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -217,7 +217,7 @@ def selectNetDevicesDialog(network, select_install_device=True):

    rc = dialog.run()

-    if rc in [gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
+    if rc in [2, gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
        retval = None
    else:
        install_device = None


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

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

iEYEARECAAYFAkvfkFUACgkQ5hsjjIy1VkkVBgCgqWf9HEybNbhL6+c72c4JiMSS
kZYAnRpYg4CU/qinx2z0HVj95VNKInZI
=ybFF
-----END PGP SIGNATURE-----


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