mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +00:00
Modified fix for #1957 non-acsii columns
This commit is contained in:
parent
a2a45f1a0b
commit
4d77241603
1 changed files with 5 additions and 2 deletions
|
@ -333,10 +333,13 @@ class ListView:
|
||||||
def on_menuitem_toggled(self, widget):
|
def on_menuitem_toggled(self, widget):
|
||||||
"""Callback for the generated column menuitems."""
|
"""Callback for the generated column menuitems."""
|
||||||
# Get the column name from the widget
|
# Get the column name from the widget
|
||||||
name = unicode(widget.get_child().get_text())
|
name = widget.get_child().get_text()
|
||||||
|
|
||||||
# Set the column's visibility based on the widgets active state
|
# Set the column's visibility based on the widgets active state
|
||||||
self.columns[name].column.set_visible(widget.get_active())
|
try:
|
||||||
|
self.columns[name].column.set_visible(widget.get_active())
|
||||||
|
except KeyError:
|
||||||
|
self.columns[unicode(name)].column.set_visible(widget.get_active())
|
||||||
return
|
return
|
||||||
|
|
||||||
def on_treeview_header_right_clicked(self, column, event):
|
def on_treeview_header_right_clicked(self, column, event):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue