temporary fix to fix #265.

when we'll have a user instance for each contact in gc we won't need that, we'll use real informatino window with the first tab
This commit is contained in:
Yann Leboulanger 2005-05-11 18:47:09 +00:00
parent 6ab10d5fe5
commit 9967408dd6
1 changed files with 8 additions and 0 deletions

View File

@ -402,6 +402,14 @@ class Groupchat_window(chat.Chat):
self.plugin.windows[self.account]['infos'][jid] = \
dialogs.Vcard_window(jid, self.plugin,
self.account, True)
# FIXME: when we'll have a user for each contact, this won't be needed
# cause we'll user real information window
vcard_xml = self.plugin.windows[self.account]['infos'][jid].xml
hbuttonbox = vcard_xml.get_widget('information_hbuttonbox')
children = hbuttonbox.get_children()
hbuttonbox.remove(children[0])
hbuttonbox.remove(children[1])
vcard_xml.get_widget('nickname_label').set_text(jid)
gajim.connections[self.account].request_vcard(jid)
#FIXME: we need the resource but it's not saved