[gnome-control-center] network: Be more careful in ignoring shared connection
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Be more careful in ignoring shared connection
- Date: Tue, 12 Feb 2013 06:57:08 +0000 (UTC)
commit a0de63dfad096b6839f11ffa7f90bdb8a81b3c50
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 11 22:11:01 2013 -0500
network: Be more careful in ignoring shared connection
It was possible for us to accidentally use the shared
connection for naming all access points.
https://bugzilla.gnome.org/show_bug.cgi?id=692921
panels/network/net-device-wifi.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 808001c..051856a 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1834,8 +1834,10 @@ populate_ap_list (NetDeviceWifi *device_wifi)
NMSetting *setting;
const GByteArray *ssid;
- if (connection_is_shared (connection))
+ if (connection_is_shared (connection)) {
+ connection = NULL;
continue;
+ }
setting = nm_connection_get_setting_by_name (connection, NM_SETTING_WIRELESS_SETTING_NAME);
ssid = nm_setting_wireless_get_ssid (NM_SETTING_WIRELESS (setting));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]