[gnome-control-center] wifi: fix typo in device_removed_cb()
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wifi: fix typo in device_removed_cb()
- Date: Wed, 8 Nov 2017 14:39:19 +0000 (UTC)
commit fe5ab55ec476ac4efc3a8db4d02b950a93a0597b
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]