mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-04 11:27:49 +03:00
[3350][GTK] Fix a regression with quick search
When one tries to search in the TorrentView, then a little search window appears but does nothing. Ref: https://lazka.github.io/pgi-docs/Gtk-3.0/callbacks.html#Gtk.TreeViewSearchEqualFunc Closes: https://dev.deluge-torrent.org/ticket/3350 Closes: https://github.com/deluge-torrent/deluge/pull/467
This commit is contained in:
parent
0e197ee07e
commit
ee33c0c5bb
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ class ListView:
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def on_keypress_search_by_name(self, model, column, key, _iter):
|
def on_keypress_search_by_name(self, model, column, key, _iter, *search_data):
|
||||||
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())
|
return not model[_iter][torrent_name_col].lower().startswith(key.lower())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue