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
|
return
|
||||||
if user.jid in self.to_be_removed[account]:
|
if user.jid in self.to_be_removed[account]:
|
||||||
self.to_be_removed[account].remove(user.jid)
|
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)
|
self.remove_user(user, account)
|
||||||
|
|
||||||
def remove_user(self, user, account):
|
def remove_user(self, user, account):
|
||||||
'''Remove a user from the roster'''
|
'''Remove a user from the roster'''
|
||||||
if user.jid in self.to_be_removed[account]:
|
if user.jid in self.to_be_removed[account]:
|
||||||
return
|
return
|
||||||
if gajim.config.get('showoffline'):
|
|
||||||
self.draw_contact(user.jid, account)
|
|
||||||
return
|
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
for i in self.get_user_iter(user.jid, account):
|
for i in self.get_user_iter(user.jid, account):
|
||||||
parent_i = model.iter_parent(i)
|
parent_i = model.iter_parent(i)
|
||||||
|
|
Loading…
Add table
Reference in a new issue