From 08d07e3ffce7303ac1a3966c483e4159f9127082 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 4 Mar 2006 09:49:53 +0000 Subject: [PATCH] when a child change his status, redraw parent line too (parent icon may depend on children status). Fixes #1649 --- src/roster_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 39dc74bfa..501d1b8c5 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -402,6 +402,10 @@ class RosterWindow: state_images = self.get_appropriate_state_images(jid, size = 'closed', icon_name = icon_name) else: + # redraw parent + if gajim.contacts.is_subcontact(account, contact): + parent_jid = gajim.contacts.get_parent_contact(account, contact).jid + self.draw_contact(parent_jid, account) state_images = self.get_appropriate_state_images(jid, icon_name = icon_name)