decode fixes in emoticons [stephan k.]

This commit is contained in:
Nikos Kouremenos 2005-09-05 14:02:36 +00:00
parent a725792f36
commit c2b5ef6091
1 changed files with 4 additions and 2 deletions

View File

@ -1911,8 +1911,10 @@ class ManageEmoticonsWindow:
if not emot in emots:
gajim.config.add_per('emoticons', emot)
self.plugin.init_regexp() # update regexp [emoticons included]
gajim.config.set_per('emoticons', emot, 'path',
model[iter][1].decode('utf-8'))
image = model[iter][1]
if image:
image = image.decode('utf-8')
gajim.config.set_per('emoticons', emot, 'path', image)
self.plugin.save_config()
def image_is_ok(self, image):