From a786a13d4c15b47c764abd585ea70b9225c99541 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 21 Feb 2006 19:10:55 +0000 Subject: [PATCH] update open chat window when we change contact's nick. Fixes #1599 --- src/roster_window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 927146274..fae008fa6 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2311,6 +2311,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid) u.name = new_text gajim.connections[account].update_contact(jid, new_text, u.groups) self.draw_contact(jid, account) + # Update opened chat + ctrl = gajim.interface.msg_win_mgr.get_control(jid, account) + if ctrl: + ctrl.update_ui() + win = gajim.interface.msg_win_mgr.get_window(jid, account) + win.redraw_tab(ctrl) elif type == 'group': # in C_JID cilumn it's not escaped old_name = model[iter][C_JID].decode('utf-8')