mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
[GTKUI] Fixed incorrect column for searching in treeview
This commit is contained in:
parent
91943ba7e3
commit
a68c3140af
1 changed files with 2 additions and 2 deletions
|
@ -582,8 +582,8 @@ class ListView:
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def on_keypress_search_by_name(self, model, columnn, key, iter):
|
def on_keypress_search_by_name(self, model, column, key, iter):
|
||||||
torrent_name_col = 5
|
torrent_name_col = self.columns["Name"].column_indices[1]
|
||||||
return not model[iter][torrent_name_col].lower().startswith(key.lower())
|
return not model[iter][torrent_name_col].lower().startswith(key.lower())
|
||||||
|
|
||||||
def restore_columns_order_from_state(self):
|
def restore_columns_order_from_state(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue