[gnome-shell] NetworkMenu: destroy the wifi dialog when the associate device disappears



commit c2cc504837b3d6f4cecd97ac8db43b13c2ca5924
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Feb 24 17:25:38 2014 +0100

    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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 1e6ae6c..149b733 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();
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]