[network-manager-applet] wifi: fix insensitive Create... button with open security (rh #541163)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] wifi: fix insensitive Create... button with open security (rh #541163)
- Date: Mon, 1 Mar 2010 19:52:31 +0000 (UTC)
commit f3a5f17c23d0436f1875eb7226a9556c342f4094
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 0569048..12edce3 100644
--- a/src/wireless-dialog.c
+++ b/src/wireless-dialog.c
@@ -89,6 +89,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)
@@ -187,8 +188,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]