we may want to remove an iter (when we remove an account for exemple)
This commit is contained in:
		
							parent
							
								
									da4457401f
								
							
						
					
					
						commit
						2f977d1b1a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -153,15 +153,15 @@ class Roster_window: | |||
| 			return | ||||
| 		if user.jid in self.to_be_removed[account]: | ||||
| 			self.to_be_removed[account].remove(user.jid) | ||||
| 		if gajim.config.get('showoffline'): | ||||
| 			self.draw_contact(user.jid, account) | ||||
| 			return | ||||
| 		self.remove_user(user, account) | ||||
| 	 | ||||
| 	def remove_user(self, user, account): | ||||
| 		'''Remove a user from the roster''' | ||||
| 		if user.jid in self.to_be_removed[account]: | ||||
| 			return | ||||
| 		if gajim.config.get('showoffline'): | ||||
| 			self.draw_contact(user.jid, account) | ||||
| 			return | ||||
| 		model = self.tree.get_model() | ||||
| 		for i in self.get_user_iter(user.jid, account): | ||||
| 			parent_i = model.iter_parent(i) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue