1
0
gnome-control-center/gnome-control-center-setup-wpa-eap-no-active-ap.patch

33 lines
1.4 KiB
Diff

From 3df3e35ff97e569523f0a6b96fecb253a7f39aed Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin <chingpang@gmail.com>
Date: Wed, 12 Oct 2011 16:33:53 +0800
Subject: [PATCH] network: show wireless dialog even if there is no active AP
The network panel ignored the request of showing the wireless
dialog if there is no active AP, and the user was not able to
set up the advanced wireless settings, such as WPA-EAP settings.
https://bugzilla.gnome.org/show_bug.cgi?id=661526
---
panels/network/cc-network-panel.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 6698d86..e3c8e27 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -911,9 +911,7 @@ add_access_point (CcNetworkPanel *panel, NMAccessPoint *ap, NMAccessPoint *activ
-1);
/* is this what we're on already? */
- if (active == NULL)
- return;
- if (nm_utils_same_ssid (ssid, nm_access_point_get_ssid (active), TRUE)) {
+ if (active && nm_utils_same_ssid (ssid, nm_access_point_get_ssid (active), TRUE)) {
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"combobox_wireless_network_name"));
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (widget), &treeiter);
--
1.7.3.4