[gnome-control-center/gnome-3-2] network: show wireless dialog even if there is no active AP



commit 79b8f770e8c416c48337d1c55cd70940e45aec0a
Author: Gary Ching-Pang Lin <chingpang gmail com>
Date:   Wed Oct 12 16:33:53 2011 +0800

    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);



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