[network-manager-applet/NMA_0_8] 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/NMA_0_8] editor: pass the right thing to nm_connection_update_secrets
- Date: Thu, 3 Feb 2011 00:33:14 +0000 (UTC)
commit 9bf0b98073bee4905bb00b4658d8fd78c84a831f
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 717bca3..889be7f 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -200,7 +200,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 */
@@ -208,9 +207,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]