From efe9439633bc34dc4e76a605025222c032a72e94 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 2 May 2021 17:29:15 +0200 Subject: [PATCH] Do not ref all dialogs The bug that we try to workaround here affects only file chooser dialog and not every dialog, so do not increase ref count on them --- src/dialogs.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dialogs.js b/src/dialogs.js index c1f7b654..8a3f38a1 100644 --- a/src/dialogs.js +++ b/src/dialogs.js @@ -112,8 +112,6 @@ class ClapperUriDialog extends Gtk.Dialog area.append(box); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); - - this.ref(); this.show(); } @@ -257,8 +255,6 @@ class ClapperPrefsDialog extends Gtk.Dialog area.append(prefsNotebook); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); - - this.ref(); this.show(); } @@ -319,8 +315,6 @@ class ClapperAboutDialog extends Gtk.AboutDialog }); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); - - this.ref(); this.show(); }