From c2cc504837b3d6f4cecd97ac8db43b13c2ca5924 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 24 Feb 2014 17:25:38 +0100 Subject: [PATCH] NetworkMenu: destroy the wifi dialog when the associate device disappears When the device is removed by NetworkManager, we can't use it to connect, so the dialog is useless and should be destroyed. https://bugzilla.gnome.org/show_bug.cgi?id=723935 --- js/ui/status/network.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 1e6ae6cb7..149b7333a 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1170,6 +1170,10 @@ const NMDeviceWireless = new Lang.Class({ this._client.disconnect(this._wirelessHwEnabledChangedId); this._wirelessHwEnabledChangedId = 0; } + if (this._dialog) { + this._dialog.destroy(); + this._dialog = null; + } this.item.destroy(); },