fix tb and do not have many window for editing our own vcard
This commit is contained in:
parent
14bccbc2a6
commit
974e4324ba
1 changed files with 5 additions and 1 deletions
|
@ -1366,7 +1366,11 @@ class AccountModificationWindow:
|
||||||
_('Without a connection, you can not edit your personal information.')
|
_('Without a connection, you can not edit your personal information.')
|
||||||
).get_response()
|
).get_response()
|
||||||
return
|
return
|
||||||
if not gajim.interface.windows[self.account]['infos'].has_key('vcard'):
|
|
||||||
|
# in infos the key jid is OUR jid so we save the vcardwindow instance there
|
||||||
|
if gajim.interface.windows[self.account]['infos'].has_key(jid):
|
||||||
|
gajim.interface.windows[self.account]['infos'][jid].window.present()
|
||||||
|
else:
|
||||||
gajim.interface.windows[self.account]['infos'][jid] = \
|
gajim.interface.windows[self.account]['infos'][jid] = \
|
||||||
dialogs.VcardWindow(jid, self.account, True)
|
dialogs.VcardWindow(jid, self.account, True)
|
||||||
gajim.connections[self.account].request_vcard(jid)
|
gajim.connections[self.account].request_vcard(jid)
|
||||||
|
|
Loading…
Add table
Reference in a new issue