diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 0d5eaad06..9730afced 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1291,6 +1291,9 @@ NMDeviceWireless.prototype = { apObj.accessPoints.splice(i, 1); if (apObj.accessPoints.length == 0) { + if (this._activeNetwork == apObj) + this._activeNetwork = null; + if (apObj.item) apObj.item.destroy();