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
This commit is contained in:
Rafostar
2021-05-02 17:29:15 +02:00
parent 4179176ce8
commit efe9439633

View File

@@ -112,8 +112,6 @@ class ClapperUriDialog extends Gtk.Dialog
area.append(box); area.append(box);
this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this));
this.ref();
this.show(); this.show();
} }
@@ -257,8 +255,6 @@ class ClapperPrefsDialog extends Gtk.Dialog
area.append(prefsNotebook); area.append(prefsNotebook);
this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this));
this.ref();
this.show(); this.show();
} }
@@ -319,8 +315,6 @@ class ClapperAboutDialog extends Gtk.AboutDialog
}); });
this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this)); this.closeSignal = this.connect('close-request', this._onCloseRequest.bind(this));
this.ref();
this.show(); this.show();
} }