cleanup gc_control.error_dialog attribute when we close the error dialog. See #6925
This commit is contained in:
		
							parent
							
								
									4bbafcf5d0
								
							
						
					
					
						commit
						24d62c2591
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -251,6 +251,7 @@ class Interface:
 | 
				
			||||||
        def on_ok(text):
 | 
					        def on_ok(text):
 | 
				
			||||||
            gajim.connections[account].join_gc(nick, room_jid, text)
 | 
					            gajim.connections[account].join_gc(nick, room_jid, text)
 | 
				
			||||||
            gajim.gc_passwords[room_jid] = text
 | 
					            gajim.gc_passwords[room_jid] = text
 | 
				
			||||||
 | 
					            gc_control.error_dialog = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        def on_cancel():
 | 
					        def on_cancel():
 | 
				
			||||||
            # get and destroy window
 | 
					            # get and destroy window
 | 
				
			||||||
| 
						 | 
					@ -260,6 +261,7 @@ class Interface:
 | 
				
			||||||
                win = self.msg_win_mgr.get_window(room_jid, account)
 | 
					                win = self.msg_win_mgr.get_window(room_jid, account)
 | 
				
			||||||
                ctrl = self.msg_win_mgr.get_gc_control(room_jid, account)
 | 
					                ctrl = self.msg_win_mgr.get_gc_control(room_jid, account)
 | 
				
			||||||
                win.remove_tab(ctrl, 3)
 | 
					                win.remove_tab(ctrl, 3)
 | 
				
			||||||
 | 
					            gc_control.error_dialog = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        gc_control = self.msg_win_mgr.get_gc_control(room_jid, account)
 | 
					        gc_control = self.msg_win_mgr.get_gc_control(room_jid, account)
 | 
				
			||||||
        if gc_control:
 | 
					        if gc_control:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue