[gnome-control-center/gnome-3-0] Properly select the active ap



commit 9098a14cc65fe907a9e7e2c28b3662c31e6bd9d3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 12 07:06:58 2011 -0400

    Properly select the active ap
    
    Comparing by object id does not work here, since there is no
    guarantee that the object id will still be present in the array
    after we did filter the list by strongest-per-ssid. Instead,
    compare the ssid.
    https://bugzilla.gnome.org/show_bug.cgi?id=649934

 panels/network/cc-network-panel.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 34a95c3..141469e 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -786,8 +786,7 @@ add_access_point (CcNetworkPanel *panel, NMAccessPoint *ap, NMAccessPoint *activ
         /* is this what we're on already? */
         if (active == NULL)
                 return;
-        if (g_strcmp0 (object_path,
-                       nm_object_get_path (NM_OBJECT (active))) == 0) {
+        if (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]