[hamster-applet] decode the value from input field. fixes bug 626663



commit 8c55512fdfd64354323123dd82140b6a5f4bcdda
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Aug 11 21:59:45 2010 +0100

    decode the value from input field. fixes bug 626663

 src/hamster/preferences.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/preferences.py b/src/hamster/preferences.py
index cc71622..c1a3612 100755
--- a/src/hamster/preferences.py
+++ b/src/hamster/preferences.py
@@ -261,6 +261,7 @@ class PreferencesEditor:
         while index >= len(self.workspace_mapping):
             self.workspace_mapping.append("")
 
+        value = value.decode("utf8", "replace")
         self.workspace_mapping[index] = value
         conf.set("workspace_mapping", self.workspace_mapping)
         self.workspace_store[path][2] = value



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]