update opened chat window when we change nick in information window. Fixes #1599

This commit is contained in:
Yann Leboulanger 2006-02-21 20:51:01 +00:00
parent 60a4b3cf20
commit 9197cbf61b
1 changed files with 9 additions and 0 deletions

View File

@ -150,6 +150,15 @@ class VcardWindow:
gajim.interface.roster.tree.get_model().set_value(i, 1, new_name) gajim.interface.roster.tree.get_model().set_value(i, 1, new_name)
gajim.connections[self.account].update_contact(self.contact.jid, gajim.connections[self.account].update_contact(self.contact.jid,
self.contact.name, self.contact.groups) 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() self.window.destroy()
def on_clear_button_clicked(self, widget): def on_clear_button_clicked(self, widget):