From 1272eaf07f9fd19454125eed8c90dd18cf46652d Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 29 Jan 2014 22:29:58 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 3dc694e15..ab67e820f 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]);