Skip to content
Snippets Groups Projects
Commit c7667b18 authored by nkour's avatar nkour
Browse files

fix a comment

parent dc532ee7
No related branches found
No related tags found
No related merge requests found
......@@ -1287,11 +1287,12 @@ _('To change the account name, you must be disconnected.')).get_response()
return
jid = self.xml.get_widget('jid_entry').get_text()
# raise the error 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 \
gajim.connections[self.account].connected < 2:
gajim.connections[self.account].connected < 2:
dialogs.ErrorDialog(_('You are not connected to the server'),
_('Without a connection, you can not edit your personal information.')).get_response()
_('Without a connection, you can not edit your personal information.')
).get_response()
return
if not self.plugin.windows[self.account]['infos'].has_key('vcard'):
self.plugin.windows[self.account]['infos'][jid] = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment