[polari/wip/fmuellner/invalid-object-access: 1/9] mainWindow: Unset :active-room on destroy



commit 59c9f93cef7177bec0a9e7db0a0eb9d15293818d
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Dec 9 18:06:04 2017 +0100

    mainWindow: Unset :active-room on destroy
    
    In case the :active-room property is non-%NULL, there's a number of
    signals we connect to. We need to disconnect those to avoid warnings
    with recent gjs, and the easiest way to do that is to unset the
    property on destroy.
    
    https://gitlab.gnome.org/GNOME/polari/issues/32

 src/mainWindow.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 38bdf4d..f12fd17 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -242,6 +242,8 @@ var MainWindow = GObject.registerClass({
             this._settings.set_value('last-selected-channel', serializedChannel);
         else
             this._settings.reset('last-selected-channel');
+
+        this.active_room = null;
     }
 
     _touchFile(file) {


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