diff options
author | Nikos Kouremenos <kourem@gmail.com> | 2005-09-06 15:18:08 +0400 |
---|---|---|
committer | Nikos Kouremenos <kourem@gmail.com> | 2005-09-06 15:18:08 +0400 |
commit | 48d0bd49491fa694d07f89ee5424285d20e5b8a2 (patch) | |
tree | a76a08f4457ffe6d3c0b80534ab3a8997f0b9dda | |
parent | 3b6697248200272f0ccb82310aeb6556228c9e3b (diff) |
3420 rev fix for config.py
-rw-r--r-- | src/config.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.py b/src/config.py index 9407cd610..abdf7106d 100644 --- a/src/config.py +++ b/src/config.py @@ -1881,8 +1881,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): |