[network-manager-applet/NETWORKMANAGER_APPLET_0_7] wifi: fix insensitive Create... button with open security (rh #541163)



commit b6a03930e2a49c2e3591eb32c819150d75e01d71
Author: JiÅ?í KlimeÅ¡ <jklimes redhat com>
Date:   Mon Mar 1 11:52:22 2010 -0800

    wifi: fix insensitive Create... button with open security (rh #541163)

 src/wireless-dialog.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/wireless-dialog.c b/src/wireless-dialog.c
index 2f3ed5e..2b13dff 100644
--- a/src/wireless-dialog.c
+++ b/src/wireless-dialog.c
@@ -87,6 +87,7 @@ typedef struct {
 #define C_NEW_COLUMN		3
 
 static gboolean security_combo_init (NMAWirelessDialog *self, gboolean auth_only);
+static void ssid_entry_changed (GtkWidget *entry, gpointer user_data);
 
 void
 nma_wireless_dialog_set_nag_ignored (NMAWirelessDialog *self, gboolean ignored)
@@ -185,8 +186,13 @@ security_combo_changed (GtkWidget *combo,
 	}
 
 	gtk_tree_model_get (model, &iter, S_SEC_COLUMN, &sec, -1);
-	if (!sec)
+	if (!sec) {
+		/* Revalidate dialog if the user picked "None" so the OK button
+		 * gets enabled if there's already a valid SSID.
+		 */
+		ssid_entry_changed (NULL, self);
 		return;
+	}
 
 	sec_widget = wireless_security_get_widget (sec);
 	g_assert (sec_widget);



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