changeset b2d201510a74 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=b2d201510a74 description: correctly decode strings from treeview. Fixes #5996
diffstat:
src/history_manager.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 1e9429f48926 -r b2d201510a74 src/history_manager.py --- a/src/history_manager.py Wed Oct 06 15:23:40 2010 +0200 +++ b/src/history_manager.py Mon Oct 25 20:09:30 2010 +0200 @@ -279,7 +279,7 @@ 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 @@ 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)