[gnome-shell] NMWirelessDialog: fix removing access points
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NMWirelessDialog: fix removing access points
- Date: Tue, 4 Feb 2014 21:25:13 +0000 (UTC)
commit 1272eaf07f9fd19454125eed8c90dd18cf46652d
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Jan 29 22:29:58 2014 +0100
NMWirelessDialog: fix removing access points
We must destroy the actor, not the item, because the latter doesn't
have a destroy() method.
https://bugzilla.gnome.org/show_bug.cgi?id=709128
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 3dc694e..ab67e82 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -957,7 +957,7 @@ const NMWirelessDialog = new Lang.Class({
network.accessPoints.splice(res.ap, 1);
if (network.accessPoints.length == 0) {
- network.item.destroy();
+ network.item.actor.destroy();
this._networks.splice(res.network, 1);
} else {
network.item.updateBestAP(network.accessPoints[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]