summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Matveenko <s@matveenko.ru>2011-12-01 19:20:35 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2011-12-01 19:21:13 +0000
commit0941377fac448d1987514de27a8f83c6f293c6ce (patch)
tree0fc0f9888aba09014a084b793dc13d19040b2656
parent1a8aa4b9202cf5421cc52f3c73b4fa6f75819016 (diff)
downloaddeluge-0941377fac448d1987514de27a8f83c6f293c6ce.zip
deluge-0941377fac448d1987514de27a8f83c6f293c6ce.tar.gz
deluge-0941377fac448d1987514de27a8f83c6f293c6ce.tar.bz2
Fix #1957 : Columns don't add resulting in keyerror for non-latin languages
-rw-r--r--deluge/ui/gtkui/listview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/listview.py b/deluge/ui/gtkui/listview.py
index 4bf016c..887f2cb 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())