Fix crash when try configure plugin second time. See https://trac-plugins.gajim.org/ticket/86
This commit is contained in:
parent
df11617ddb
commit
e4244075dc
|
@ -326,6 +326,10 @@ class GajimPluginConfigDialog(Gtk.Dialog):
|
||||||
|
|
||||||
self.init()
|
self.init()
|
||||||
|
|
||||||
|
def on_close_dialog(self, widget, data):
|
||||||
|
self.hide()
|
||||||
|
return True
|
||||||
|
|
||||||
def on_close_button_clicked(self, widget):
|
def on_close_button_clicked(self, widget):
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
||||||
|
@ -334,6 +338,7 @@ class GajimPluginConfigDialog(Gtk.Dialog):
|
||||||
self.set_transient_for(parent)
|
self.set_transient_for(parent)
|
||||||
self.on_run()
|
self.on_run()
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
self.connect('delete-event', self.on_close_dialog)
|
||||||
result = super(GajimPluginConfigDialog, self)
|
result = super(GajimPluginConfigDialog, self)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue