prevent a TB
This commit is contained in:
		
							parent
							
								
									29fb257f66
								
							
						
					
					
						commit
						b8505eec7e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -209,7 +209,8 @@ class GroupchatWindow(chat.Chat):
 | 
				
			||||||
		iter = self.get_user_iter(room_jid, nick)
 | 
							iter = self.get_user_iter(room_jid, nick)
 | 
				
			||||||
		if not iter:
 | 
							if not iter:
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		del self.contacts[room_jid][nick]
 | 
							if self.contacts[room_jid].has_key(nick):
 | 
				
			||||||
 | 
								del self.contacts[room_jid][nick]
 | 
				
			||||||
		parent_iter = model.iter_parent(iter)
 | 
							parent_iter = model.iter_parent(iter)
 | 
				
			||||||
		model.remove(iter)
 | 
							model.remove(iter)
 | 
				
			||||||
		if model.iter_n_children(parent_iter) == 0:
 | 
							if model.iter_n_children(parent_iter) == 0:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue