don't remove edited line in emoticon selector

This commit is contained in:
Yann Leboulanger 2005-09-05 21:48:39 +00:00
parent ae2e86de03
commit 85f38f39c4
1 changed files with 1 additions and 0 deletions

View File

@ -1964,6 +1964,7 @@ class ManageEmoticonsWindow:
old_text = model.get_value(iter, 0).decode('utf-8') old_text = model.get_value(iter, 0).decode('utf-8')
if old_text in emots: if old_text in emots:
gajim.config.del_per('emoticons', old_text) gajim.config.del_per('emoticons', old_text)
emots = gajim.config.get_per('emoticons')
emot = new_text.decode('utf-8').upper() emot = new_text.decode('utf-8').upper()
if emot in emots: if emot in emots:
model.remove(iter) model.remove(iter)