[gnome-control-center/gnome-3-26] wifi: fix typo in device_removed_cb()



commit 8a6533f1d4c68748e1605c8980ba7acf632ad662
Author: Xiang Fan <sfanxiang gmail com>
Date:   Fri Nov 3 23:18:41 2017 +0800

    wifi: fix typo in device_removed_cb()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789872

 panels/network/cc-wifi-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index 4407ba7..7fceb35 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -386,7 +386,7 @@ device_removed_cb (NMClient    *client,
   /* Remove from the devices list */
   for (i = 0; i < self->devices->len; i++)
     {
-      NetObject *object = g_ptr_array_index (self->devices, 0);
+      NetObject *object = g_ptr_array_index (self->devices, i);
 
       if (g_strcmp0 (net_object_get_id (object), id) == 0)
         {


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