[hamster-applet/gnome-2-26] decode activity name when doing switch on doubleclick. fixes bug 580741



commit fc22b12a3fe8af66c34ed960e777736287d93ec0
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Apr 29 18:58:14 2009 +0100

    decode activity name when doing switch on doubleclick. fixes bug 580741
---
 hamster/applet.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hamster/applet.py b/hamster/applet.py
index e8ef87d..cff8125 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -620,7 +620,7 @@ class HamsterApplet(object):
     def on_today_row_activated(self, tree, path, column):
         selection = tree.get_selection()
         (model, iter) = selection.get_selected()
-        activity_name = model[iter][1]
+        activity_name = model[iter][1].decode('utf8', 'replace')
         if activity_name:
             storage.add_fact(activity_name)
             dispatcher.dispatch('panel_visible', False)        



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