[gnome-shell/gnome-3-2] NetworkMenu: fix regression in access-point-removed
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-2] NetworkMenu: fix regression in access-point-removed
- Date: Wed, 18 Jan 2012 15:32:03 +0000 (UTC)
commit 759de873b5f4e23c3ba8896e4568a39582cfa87f
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 966e872..aa9b277 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]