[network-manager-applet] editor: make sure original connection doesn't get used in the future
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet] editor: make sure original connection doesn't get used in the future
- Date: Tue, 29 Sep 2009 01:05:34 +0000 (UTC)
commit 9088d07676fe17f30c58b1c4af0b8e03738df50c
Author: Dan Williams <dcbw redhat com>
Date: Mon Sep 28 18:05:03 2009 -0700
editor: make sure original connection doesn't get used in the future
src/connection-editor/nm-connection-editor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 06ab4d5..6cf7fc0 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -555,7 +555,7 @@ add_page (NMConnectionEditor *editor,
static gboolean
nm_connection_editor_set_connection (NMConnectionEditor *editor,
- NMConnection *connection,
+ NMConnection *orig_connection,
GError **error)
{
NMSettingConnection *s_con;
@@ -563,15 +563,15 @@ nm_connection_editor_set_connection (NMConnectionEditor *editor,
gboolean success = FALSE;
g_return_val_if_fail (NM_IS_CONNECTION_EDITOR (editor), FALSE);
- g_return_val_if_fail (NM_IS_CONNECTION (connection), FALSE);
+ g_return_val_if_fail (NM_IS_CONNECTION (orig_connection), FALSE);
/* clean previous connection */
if (editor->connection)
g_object_unref (editor->connection);
- editor->connection = nm_connection_duplicate (connection);
+ editor->connection = nm_connection_duplicate (orig_connection);
- editor->orig_connection = g_object_ref (connection);
+ editor->orig_connection = g_object_ref (orig_connection);
editor->orig_scope = nm_connection_get_scope (editor->connection);
nm_connection_editor_update_title (editor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]