From 970fad7557c52656a27382c9c2999c7eaed2adaa Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 1 Oct 2018 12:02:42 +0100 Subject: [PATCH] [GTK] Fix column name missing translation markup With non-English languages this lookup would fail without gettext translation of the column name. A better solution is to not use the translatable column title as an index but this is a quick fix for now. --- 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 e9a2951c4..39b390275 100644 --- a/deluge/ui/gtkui/listview.py +++ b/deluge/ui/gtkui/listview.py @@ -791,7 +791,7 @@ class ListView(object): return True def on_keypress_search_by_name(self, model, column, key, _iter): - torrent_name_col = self.columns['Name'].column_indices[1] + torrent_name_col = self.columns[_('Name')].column_indices[1] return not model[_iter][torrent_name_col].lower().startswith(key.lower()) def restore_columns_order_from_state(self):