From 9197cbf61b0e04a9410325da006ca643a11ba8f1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 21 Feb 2006 20:51:01 +0000 Subject: [PATCH] update opened chat window when we change nick in information window. Fixes #1599 --- src/vcard.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/vcard.py b/src/vcard.py index c73da03b7..8a322ad4e 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -150,6 +150,15 @@ class VcardWindow: gajim.interface.roster.tree.get_model().set_value(i, 1, new_name) gajim.connections[self.account].update_contact(self.contact.jid, self.contact.name, self.contact.groups) + # Update opened chat window + ctrl = gajim.interface.msg_win_mgr.get_control(self.contact.jid, + self.account) + if ctrl: + ctrl.update_ui() + win = gajim.interface.msg_win_mgr.get_window(self.contact.jid, + self.account) + win.redraw_tab(ctrl) + win.show_title() self.window.destroy() def on_clear_button_clicked(self, widget):