[GTKUI] Fixed incorrect column for searching in treeview

This commit is contained in:
bendikro 2014-09-09 18:16:02 +02:00 committed by Calum Lind
parent 91943ba7e3
commit a68c3140af
1 changed files with 2 additions and 2 deletions

View File

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