do not remove a contact from the roster if show_offline is True

This commit is contained in:
Yann Leboulanger 2005-05-07 15:47:11 +00:00
parent 457a800cf4
commit e4692d22d6
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ class Roster_window:
'''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)