on_edit_details_button_clicked is better like that
This commit is contained in:
parent
1525445d3c
commit
935e57c18c
|
@ -1128,14 +1128,17 @@ class Account_modification_window:
|
||||||
'GtkGui'))
|
'GtkGui'))
|
||||||
|
|
||||||
def on_edit_details_button_clicked(self, widget):
|
def on_edit_details_button_clicked(self, widget):
|
||||||
if not self.plugin.windows.has_key('vcard'):
|
if not self.plugin.windows.has_key(self.account):
|
||||||
jid = self.xml.get_widget('jid_entry').get_text()
|
Warning_dialog(_('You must first create your account before editing your information'))
|
||||||
if self.plugin.connected[self.account]:
|
return
|
||||||
self.plugin.windows[self.account]['infos'][jid] = \
|
jid = self.xml.get_widget('jid_entry').get_text()
|
||||||
vcard_information_window(jid, self.plugin, self.account, True)
|
if not self.plugin.connected[self.account]:
|
||||||
self.plugin.send('ASK_VCARD', self.account, jid)
|
Warning_dialog(_('You must be connected to edit your information'))
|
||||||
else:
|
return
|
||||||
Warning_dialog(_('You must be connected to get your informations'))
|
if not self.plugin.windows[self.account]['infos'].has_key('vcard'):
|
||||||
|
self.plugin.windows[self.account]['infos'][jid] = \
|
||||||
|
vcard_information_window(jid, self.plugin, self.account, True)
|
||||||
|
self.plugin.send('ASK_VCARD', self.account, jid)
|
||||||
|
|
||||||
def on_gpg_choose_button_clicked(self, widget, data=None):
|
def on_gpg_choose_button_clicked(self, widget, data=None):
|
||||||
w = choose_gpg_key_dialog()
|
w = choose_gpg_key_dialog()
|
||||||
|
|
Loading…
Reference in New Issue