Database: Eliminate redundant list item selection
- gui_synclist_select_item will be called in the update_dir function by dirbrowse() - it is unnecessary to call when the tables opened by tagtree_enter are not being displayed but are only being used for inserting table contents into the current playlist. Change-Id: Ib768b457b2baa7eb85cf73c6339fd4f603d03d90
This commit is contained in:
parent
97936e0661
commit
e6ab74d4ac
1 changed files with 0 additions and 2 deletions
|
@ -1976,7 +1976,6 @@ int tagtree_enter(struct tree_context* c)
|
|||
if (reset_selection)
|
||||
{
|
||||
c->selected_item=0;
|
||||
gui_synclist_select_item(&tree_lists, c->selected_item);
|
||||
}
|
||||
|
||||
tree_unlock_cache(c);
|
||||
|
@ -1991,7 +1990,6 @@ void tagtree_exit(struct tree_context* c)
|
|||
if (c->dirlevel > 0)
|
||||
c->dirlevel--;
|
||||
c->selected_item=selected_item_history[c->dirlevel];
|
||||
gui_synclist_select_item(&tree_lists, c->selected_item);
|
||||
c->currtable = table_history[c->dirlevel];
|
||||
c->currextra = extra_history[c->dirlevel];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue