From 45479d7708acc90ebaa080df00ebac76bee36e16 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 10 Dec 2005 14:41:09 +0000 Subject: [PATCH] pange_escape contact name when we rename them when we want old_group_name, we get it from C_JID column so that it's not escaped --- src/roster_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 948d6b0c6..d926be6de 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -861,7 +861,7 @@ class RosterWindow: #Remove resource indicator (Name (2)) contacts = gajim.contacts[account][jid] name = contacts[0].name - model[iter][C_NAME] = name + model[iter][C_NAME] = gtkgui_helpers.escape_for_pango_markup(name) model[iter][C_EDITABLE] = True # set 'editable' to True self.tree.set_cursor(path, self.tree.get_column(0), True) @@ -2114,7 +2114,8 @@ _('If "%s" accepts this request you will know his or her status.') %jid) gajim.connections[account].update_contact(jid, new_text, u.groups) self.draw_contact(jid, account) elif type == 'group': - old_name = model[iter][C_NAME].decode('utf-8') + # in C_JID cilumn it's not escaped + old_name = model[iter][C_JID].decode('utf-8') # Groups maynot change name from or to 'not in the roster' if _('not in the roster') in (new_text, old_name): return