[network-manager-applet] editor: ensure updated connection has the right scope



commit 95078b30a5001f25adc2c0b30973c4bf996e9010
Author: Dan Williams <dcbw redhat com>
Date:   Mon Sep 21 11:54:14 2009 -0700

    editor: ensure updated connection has the right scope

 src/connection-editor/nm-connection-editor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index d757dc1..561634c 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -427,6 +427,9 @@ nm_connection_editor_update_connection (NMConnectionEditor *editor, GError **err
 	settings = nm_connection_to_hash (editor->connection);
 	nm_connection_replace_settings (editor->orig_connection, settings, NULL);
 	g_hash_table_destroy (settings);
+
+	nm_connection_set_scope (editor->orig_connection,
+	                         nm_connection_get_scope (editor->connection));
 	return TRUE;
 }
 



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