From e4244075dc7a22ed23605a8d6599c1f77f9befba Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Fri, 6 Dec 2013 12:25:34 +0400 Subject: [PATCH] Fix crash when try configure plugin second time. See https://trac-plugins.gajim.org/ticket/86 --- src/plugins/gui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/gui.py b/src/plugins/gui.py index 28f43b727..508906fbe 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -326,6 +326,10 @@ class GajimPluginConfigDialog(Gtk.Dialog): self.init() + def on_close_dialog(self, widget, data): + self.hide() + return True + def on_close_button_clicked(self, widget): self.hide() @@ -334,6 +338,7 @@ class GajimPluginConfigDialog(Gtk.Dialog): self.set_transient_for(parent) self.on_run() self.show_all() + self.connect('delete-event', self.on_close_dialog) result = super(GajimPluginConfigDialog, self) return result