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
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue