From 77a0e5f70323c7082f624c2090735afc93ebca55 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Fri, 26 Aug 2005 23:03:22 +0000 Subject: [PATCH] fixed TB when modifying bookmarks of nonascii account name (unicode <-> utf-8 issue) --- src/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.py b/src/config.py index 71d6f3238..8561c1205 100644 --- a/src/config.py +++ b/src/config.py @@ -2647,7 +2647,8 @@ _('Please be sure to fill out server and room fields or remove this bookmark.')) return for account in self.treestore: - gajim.connections[account[1]].bookmarks = [] + account_unicode = account[1].decode('utf-8') + gajim.connections[account_unicode].bookmarks = [] for bm in account.iterchildren(): #Convert True/False/None to '1' or '0' @@ -2657,9 +2658,9 @@ _('Please be sure to fill out server and room fields or remove this bookmark.')) bmdict = { 'name': bm[1], 'jid': bm[2], 'autojoin': autojoin, 'password': bm[4], 'nick': bm[5] } - gajim.connections[account[1]].bookmarks.append(bmdict) + gajim.connections[account_unicode].bookmarks.append(bmdict) - gajim.connections[account[1]].store_bookmarks() + gajim.connections[account_unicode].store_bookmarks() self.plugin.roster.make_menu() self.window.destroy()