we may want to remove an iter (when we remove an account for exemple)

This commit is contained in:
Yann Leboulanger 2005-05-08 16:56:14 +00:00
parent da4457401f
commit 2f977d1b1a
1 changed files with 3 additions and 3 deletions

View File

@ -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)