Fix crash when try configure plugin second time. See https://trac-plugins.gajim.org/ticket/86

This commit is contained in:
Denis Fomin 2013-12-06 12:25:34 +04:00
parent df11617ddb
commit e4244075dc
1 changed files with 5 additions and 0 deletions

View File

@ -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