summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-10-07 14:57:35 +0200
committerThomas Haller <thaller@redhat.com>2013-10-29 20:45:56 +0100
commit2260634f4bf4e58b7e88b5407e25b3404c1fdf0d (patch)
treed09bae30c7bc50a06375402ea6d87ad6cf8bfef4
parentb44069bd7aafa779ef23747964f30e868fa16550 (diff)
downloadnetwork-manager-applet-2260634f4bf4e58b7e88b5407e25b3404c1fdf0d.tar.gz
applet: initialize ca_cert_ignore checkbox for "Connect to Hidden"
When opening the "Connect to Hidden Network" dialog for a connection without CA authority, the ca_cert_ignore checkbox was not properly loaded and always stayed unchecked. With this change, EAP connections without ca_cert_ignore flag will be validate as erroneous and the "Connect" button in the "Connect to Hidden Network" dialog stays disabled. Previously, the behaviour was indeterministic, and also it might trigger an assert in eap_method_ca_cert_not_required_toggled. Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/libnm-gtk/nm-wifi-dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libnm-gtk/nm-wifi-dialog.c b/src/libnm-gtk/nm-wifi-dialog.c
index c2fee7dc..b8709436 100644
--- a/src/libnm-gtk/nm-wifi-dialog.c
+++ b/src/libnm-gtk/nm-wifi-dialog.c
@@ -339,6 +339,9 @@ connection_combo_changed (GtkWidget *combo,
C_CON_COLUMN, &priv->connection,
C_NEW_COLUMN, &is_new, -1);
+ if (priv->connection)
+ eap_method_ca_cert_ignore_load (priv->connection);
+
if (!security_combo_init (self, priv->secrets_only)) {
g_warning ("Couldn't change Wi-Fi security combo box.");
return;