[polari/wip/fmuellner/fix-destroy] connectionDetails: Fix ::destroy handler



commit 99cfb1d1d13b43216766fa00f15ad0a0457c54f6
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Dec 19 23:47:13 2017 +0100

    connectionDetails: Fix ::destroy handler
    
    Commit 86c9f52a43 added a handler to disconnect signals on destroy,
    but the connect() method is inherited from the GObject class, and
    therefore not available before we chained up, oops.

 src/connections.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 0596258..be7e1a8 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -275,14 +275,14 @@ var ConnectionDetails = GObject.registerClass({
             this.notify('has-service');
         });
 
-        this.connect('destroy', () => {
-            this._networksManager.disconnect(id);
-        });
-
         this._account = null;
 
         super._init(params);
 
+        this.connect('destroy', () => {
+            this._networksManager.disconnect(id);
+        });
+
         this._nameEntry.connect('changed',
                                 this._onCanConfirmChanged.bind(this));
         this._serverEntry.connect('changed',


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