[gnome-control-center] network: Scope correctly the connection variable
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Scope correctly the connection variable
- Date: Tue, 2 Oct 2012 12:59:41 +0000 (UTC)
commit 7e708ae52c48a1b1dcc240f0007c5066cec0a19b
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 2 12:33:15 2012 +0200
network: Scope correctly the connection variable
panels/network/net-device-wifi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 7b63a45..8cbe5a3 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1089,7 +1089,6 @@ wireless_try_to_connect (NetDeviceWifi *device_wifi,
const gchar *ssid_tmp;
GSList *list, *l;
GSList *filtered;
- NMConnection *connection;
NMConnection *connection_activate = NULL;
NMDevice *device;
NMSettingWireless *setting_wireless;
@@ -1116,6 +1115,8 @@ wireless_try_to_connect (NetDeviceWifi *device_wifi,
filtered = nm_device_filter_connections (device, list);
g_debug ("%i suitable remote connections to check", g_slist_length (filtered));
for (l = filtered; l; l = g_slist_next (l)) {
+ NMConnection *connection;
+
connection = NM_CONNECTION (l->data);
setting_wireless = nm_connection_get_setting_wireless (connection);
if (!NM_IS_SETTING_WIRELESS (setting_wireless))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]