upgrade the self.account var when we change the name of the account (fix #279)

This commit is contained in:
Yann Leboulanger 2005-05-14 11:01:09 +00:00
parent 288b68dd53
commit c3437d2d14
1 changed files with 1 additions and 0 deletions

View File

@ -1150,6 +1150,7 @@ class Account_modification_window:
del gajim.connections[self.account] del gajim.connections[self.account]
gajim.config.del_per('accounts', self.account) gajim.config.del_per('accounts', self.account)
gajim.config.add_per('accounts', name) gajim.config.add_per('accounts', name)
self.account = name
for opt in config: for opt in config:
gajim.config.set_per('accounts', name, opt, config[opt]) gajim.config.set_per('accounts', name, opt, config[opt])