From a003eca56f0689f207800b0f5f341897b4a628a4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Apr 2006 10:16:34 +0000 Subject: [PATCH] forbid to rename an account to an already existing name. Fixes #1835 --- src/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config.py b/src/config.py index 2cceab861..ceb7b2225 100644 --- a/src/config.py +++ b/src/config.py @@ -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.'))