Old account names being used after rename
Bug description
Somewhere something doesn't get updated when renaming an account.
Steps to reproduce
Create a new account, rename the connection/account name, click "Close" in the "Edit Accounts" window and try to connect to the new server.
Traceback (most recent call last): File "/home/me/bin/gajim/src/common/xmpp/idlequeue.py", line 528, in _process_events return IdleQueue._process_events(self, fd, flags) File "/home/me/bin/gajim/src/common/xmpp/idlequeue.py", line 393, in _process_events obj.pollin() File "/home/me/bin/gajim/src/common/xmpp/transports_nb.py", line 414, in pollin self._do_receive() File "/home/me/bin/gajim/src/common/xmpp/transports_nb.py", line 600, in _do_receive self._on_receive(received) File "/home/me/bin/gajim/src/common/xmpp/transports_nb.py", line 614, in _on_receive self.on_receive(data) File "/home/me/bin/gajim/src/common/xmpp/dispatcher_nb.py", line 452, in dispatch handler'func' File "/home/me/bin/gajim/src/common/pep.py", line 540, in _pubsubEventCB pep = pep_class.get_tag_as_PEP(jid, self._account, event_tag) File "/home/me/bin/gajim/src/common/pep.py", line 223, in get_tag_as_PEP return cls(jid, account, items) File "/home/me/bin/gajim/src/common/pep.py", line 230, in init self._update_contacts(jid, account) File "/home/me/bin/gajim/src/common/pep.py", line 239, in _update_contacts for contact in gajim.contacts.get_contacts(account, jid): File "/home/me/bin/gajim/src/common/contacts.py", line 307, in get_contacts return self._accounts[account].contacts.get_contacts(jid) KeyError: u'jabber.testserv.localdomain'