From d4651a3215f2d1156bb2c2b7134560c8ae1d712f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 31 Jan 2006 22:24:46 +0000 Subject: [PATCH] redraw the parent contact icon when we add / remove a subcontact --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 7f36bc06d..fefe71372 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2671,9 +2671,11 @@ _('If "%s" accepts this request you will know his or her status.') % jid) c_source.groups = [grp_dest] gajim.connections[account].update_contact(jid_source, c_source.name, c_source.groups) + parent_jid = gajim.contacts.get_parent_contact(account, c_source).jid gajim.contacts.remove_subcontact(account, jid_source) context.finish(True, True, etime) self.add_contact_to_roster(jid_source, account) + self.draw_contact(parent_jid, account) return if grp_source == grp_dest: # Add meta contact @@ -2686,6 +2688,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) context.finish(True, True, etime) # Add it under parent contact self.add_contact_to_roster(jid_source, account) + self.draw_contact(jid_dest, account) return # We upgrade only the first user because user2.groups is a pointer to # user1.groups