From 3176f6e1f533be788e6356a1db004cff3910daf7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 26 Apr 2007 20:05:06 +0000 Subject: [PATCH] unstrike groups when we remove them from blocked contacts window --- src/dialogs.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 6160e1847..b09ec2593 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -2364,18 +2364,17 @@ class BlockedContactsWindow: gajim.connections[self.account].blocked_contacts.remove(jid) gajim.interface.roster.draw_contact(jid, self.account) else: + group = deleted_rule['value'] for jid in gajim.contacts.get_jid_list(self.account): contact = gajim.contacts.get_contact_with_highest_priority( self.account, jid) - if deleted_rule['value'] in contact.groups: + if group in contact.groups: gajim.connections[self.account].send_custom_status(show, msg, contact.jid) - # needed for draw_contact: - if contact.jid in gajim.connections[self.account].\ - blocked_contacts: - gajim.connections[self.account].blocked_contacts.remove( - contact.jid) - gajim.interface.roster.draw_contact(contact.jid, self.account) + # needed for draw_group: + if group in gajim.connections[self.account].blocked_groups: + gajim.connections[self.account].blocked_groups.remove(group) + gajim.interface.roster.draw_group(group, self.account) def privacy_list_received(self, rules): self.store.clear()