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
This commit is contained in:
parent
2fe760cc4b
commit
1272eaf07f
@ -957,7 +957,7 @@ const NMWirelessDialog = new Lang.Class({
|
|||||||
network.accessPoints.splice(res.ap, 1);
|
network.accessPoints.splice(res.ap, 1);
|
||||||
|
|
||||||
if (network.accessPoints.length == 0) {
|
if (network.accessPoints.length == 0) {
|
||||||
network.item.destroy();
|
network.item.actor.destroy();
|
||||||
this._networks.splice(res.network, 1);
|
this._networks.splice(res.network, 1);
|
||||||
} else {
|
} else {
|
||||||
network.item.updateBestAP(network.accessPoints[0]);
|
network.item.updateBestAP(network.accessPoints[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user