[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.
This commit is contained in:
Calum Lind 2018-10-01 12:02:42 +01:00
parent 358ff74d0e
commit 970fad7557
1 changed files with 1 additions and 1 deletions

View File

@ -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):