forked from len0rd/rockbox
Fix the database browser not remembering its selected item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12705 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a990ff2920
commit
fd30be5545
2 changed files with 4 additions and 2 deletions
|
@ -632,6 +632,7 @@ int dirbrowse()
|
|||
if (returned_button == ACTION_STD_CANCEL)
|
||||
button = ACTION_STD_CANCEL;
|
||||
|
||||
tc.selected_item = gui_synclist_get_sel_pos(&tree_lists);
|
||||
switch ( button ) {
|
||||
case ACTION_STD_OK:
|
||||
/* nothing to do if no files to display */
|
||||
|
@ -933,7 +934,6 @@ int dirbrowse()
|
|||
}
|
||||
|
||||
if(need_update) {
|
||||
tc.selected_item = gui_synclist_get_sel_pos(&tree_lists);
|
||||
need_update=false;
|
||||
if ( numentries > 0 ) {
|
||||
/* Voice the file if changed */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue