From 1d8d6a4542b98ecc0768819e3985f26086ea7a47 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 25 Oct 2010 20:09:30 +0200 Subject: [PATCH] correctly decode strings from treeview. Fixes #5996 --- src/history_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/history_manager.py b/src/history_manager.py index 866207050..a0deb2f36 100644 --- a/src/history_manager.py +++ b/src/history_manager.py @@ -279,7 +279,7 @@ class HistoryManager: path = rowref.get_path() if path is None: continue - jid = liststore[path][0] # jid + jid = liststore[path][0].decode('utf-8') # jid self._fill_logs_listview(jid) def _get_jid_id(self, jid): @@ -625,7 +625,7 @@ class HistoryManager: def on_search_results_listview_row_activated(self, widget, path, column): # get log_line_id, jid_id from row we double clicked log_line_id = self.search_results_liststore[path][0] - jid = self.search_results_liststore[path][1] + jid = self.search_results_liststore[path][1].decode('utf-8') # make it string as in gtk liststores I have them all as strings # as this is what db returns so I don't have to fight with types jid_id = self._get_jid_id(jid)