From 759de873b5f4e23c3ba8896e4568a39582cfa87f Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 3 Nov 2011 10:02:03 +0100 Subject: [PATCH] NetworkMenu: fix regression in access-point-removed When changing _findNetwork with _findExistingNetwork, I changed the return value to avoid searching twice for the access point, and changed some names. I forgot to update all points where those names were used. https://bugzilla.gnome.org/show_bug.cgi?id=663278 --- js/ui/status/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 966e8726c..aa9b27759 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1322,7 +1322,7 @@ NMDeviceWireless.prototype = { this._overflowItem = null; } } - this._networks.splice(pos, 1); + this._networks.splice(res.network, 1); } else if (apObj.item) apObj.item.updateAccessPoints(apObj.accessPoints);