Skip to content
Snippets Groups Projects
Commit a003eca5 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

forbid to rename an account to an already existing name. Fixes #1835

parent c22929a8
No related branches found
No related tags found
No related merge requests found
......@@ -1125,6 +1125,11 @@ class AccountModificationWindow:
_('To change the account name, you must read all pending '
'events.'))
return
if name in gajim.connections:
dialogs.ErrorDialog(_('Account Name Already Used'),
_('This name is already used by another of your accounts. Please choose '
'another name.'))
return
if (name == ''):
dialogs.ErrorDialog(_('Invalid account name'),
_('Account name cannot be empty.'))
......
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