From 0941377fac448d1987514de27a8f83c6f293c6ce Mon Sep 17 00:00:00 2001 From: Serge Matveenko Date: Thu, 1 Dec 2011 19:20:35 +0000 Subject: [PATCH] Fix #1957 : Columns don't add resulting in keyerror for non-latin languages --- deluge/ui/gtkui/listview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py index 4bf016c38..887f2cb00 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -333,7 +333,7 @@ class ListView: def on_menuitem_toggled(self, widget): """Callback for the generated column menuitems.""" # Get the column name from the widget - name = widget.get_child().get_text() + name = unicode(widget.get_child().get_text()) # Set the column's visibility based on the widgets active state self.columns[name].column.set_visible(widget.get_active())