fix a comment

This commit is contained in:
Nikos Kouremenos 2005-07-18 21:26:42 +00:00
parent dc532ee707
commit c7667b1868
1 changed files with 4 additions and 3 deletions

View File

@ -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] = \