[gnome-shell] NetworkMenu: fix regression in access-point-removed
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NetworkMenu: fix regression in access-point-removed
- Date: Sun, 6 Nov 2011 21:55:36 +0000 (UTC)
commit 43f53a708f0e11433a58c5d9504afd12835daed2
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Nov 3 10:02:03 2011 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index aa9e234..b12730d 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1326,7 +1326,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]