Use unified way to ask our own vcard so it is auto retrieved
This commit is contained in:
parent
65f3129997
commit
e2f7a09778
|
@ -1400,7 +1400,6 @@ class AccountModificationWindow:
|
||||||
dialogs.ErrorDialog(_('No such account available'),
|
dialogs.ErrorDialog(_('No such account available'),
|
||||||
_('You must create your account before editing your personal information.'))
|
_('You must create your account before editing your personal information.'))
|
||||||
return
|
return
|
||||||
jid = self.xml.get_widget('jid_entry').get_text().decode('utf-8')
|
|
||||||
|
|
||||||
# show error dialog if account is newly created (not in gajim.connections)
|
# show error dialog if account is newly created (not in gajim.connections)
|
||||||
if not gajim.connections.has_key(self.account) or \
|
if not gajim.connections.has_key(self.account) or \
|
||||||
|
@ -1409,12 +1408,7 @@ class AccountModificationWindow:
|
||||||
_('Without a connection, you can not edit your personal information.'))
|
_('Without a connection, you can not edit your personal information.'))
|
||||||
return
|
return
|
||||||
|
|
||||||
# in infos the key jid is OUR jid so we save the vcardwindow instance there
|
gajim.interface.edit_own_details(self.account)
|
||||||
if gajim.interface.instances[self.account]['infos'].has_key(jid):
|
|
||||||
gajim.interface.instances[self.account]['infos'][jid].window.present()
|
|
||||||
else:
|
|
||||||
gajim.interface.instances[self.account]['infos'][jid] = \
|
|
||||||
vcard.VcardWindow(jid, self.account, True)
|
|
||||||
|
|
||||||
def on_manage_proxies_button_clicked(self, widget):
|
def on_manage_proxies_button_clicked(self, widget):
|
||||||
if gajim.interface.instances.has_key('manage_proxies'):
|
if gajim.interface.instances.has_key('manage_proxies'):
|
||||||
|
|
Loading…
Reference in New Issue