[network-manager-applet/rm-userset] editor: pass the right thing to nm_connection_update_secrets
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/rm-userset] editor: pass the right thing to nm_connection_update_secrets
- Date: Thu, 3 Feb 2011 00:32:41 +0000 (UTC)
commit 32f5e4ea5635cd61ac1dfb7595602d67dc059a24
Author: Dan Williams <dcbw redhat com>
Date: Wed Feb 2 18:32:08 2011 -0600
editor: pass the right thing to nm_connection_update_secrets
It wants the whole secrets hash, not the hash for one setting.
src/connection-editor/ce-page.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/ce-page.c b/src/connection-editor/ce-page.c
index 8f149d4..29b921e 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -199,7 +199,6 @@ ce_page_complete_init (CEPage *self,
g_assert (setting_name);
g_assert (secrets);
- /* Update the connection with the new secrets */
setting_hash = g_hash_table_lookup (secrets, setting_name);
if (!setting_hash) {
/* Success, no secrets */
@@ -207,9 +206,10 @@ ce_page_complete_init (CEPage *self,
return;
}
+ /* Update the connection with the new secrets */
if (nm_connection_update_secrets (self->connection,
setting_name,
- setting_hash,
+ secrets,
&update_error)) {
/* Success */
emit_initialized (self, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]