[network-manager-netbook/MplPanelClient] fix saving autoconnect settings



commit 1bffcadeff489db0e650d0389daa64a1ca8ef780
Author: Dan Williams <dcbw redhat com>
Date:   Wed Sep 30 09:35:40 2009 -0700

    fix saving autoconnect settings

 src/nmn-ethernet-item.c |    2 +-
 src/nmn-wifi-item.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nmn-ethernet-item.c b/src/nmn-ethernet-item.c
index c6edfbd..0e377d8 100644
--- a/src/nmn-ethernet-item.c
+++ b/src/nmn-ethernet-item.c
@@ -99,7 +99,7 @@ update_autoconnect (NmnNetworkItem *item, gboolean connect_automatically)
         return FALSE;
 
     g_object_set (s_con, NM_SETTING_CONNECTION_AUTOCONNECT, connect_automatically, NULL);
-    nm_settings_connection_interface_update (NM_SETTINGS_CONNECTION_INTERFACE (s_con),
+    nm_settings_connection_interface_update (NM_SETTINGS_CONNECTION_INTERFACE (connection),
                                              update_cb,
                                              item);
 
diff --git a/src/nmn-wifi-item.c b/src/nmn-wifi-item.c
index 5aa0a9a..2c035fc 100644
--- a/src/nmn-wifi-item.c
+++ b/src/nmn-wifi-item.c
@@ -461,7 +461,7 @@ update_autoconnect (NmnNetworkItem *item, gboolean connect_automatically)
 
     g_object_set (s_con, NM_SETTING_CONNECTION_AUTOCONNECT, connect_automatically, NULL);
 
-    nm_settings_connection_interface_update (NM_SETTINGS_CONNECTION_INTERFACE (s_con),
+    nm_settings_connection_interface_update (NM_SETTINGS_CONNECTION_INTERFACE (connection),
                                              update_cb,
                                              item);
 



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