Author: asterix Date: 2009-04-05 17:26:59 +0200 (Sun, 05 Apr 2009) New Revision: 11188
Modified: trunk/src/config.py Log: don't remove the possibility to add twice the same account. Fixes #4948
Modified: trunk/src/config.py =================================================================== --- trunk/src/config.py 2009-04-05 12:01:58 UTC (rev 11187) +++ trunk/src/config.py 2009-04-05 15:26:59 UTC (rev 11188) @@ -3112,18 +3112,6 @@ dialogs.ErrorDialog(pritext, str(s)) return
- already_in_jids = [] - for account in gajim.connections: - j = gajim.config.get_per('accounts', account, 'name') - j += '@' + gajim.config.get_per('accounts', account, 'hostname') - already_in_jids.append(j) - - if jid in already_in_jids: - pritext = _('Duplicate Jabber ID') - sectext = _('This account is already configured in Gajim.') - dialogs.ErrorDialog(pritext, sectext) - return - self.account = server i = 1 while self.account in gajim.connections: