1
0
Fork 0
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:
Jonathan Gordon 2007-03-10 12:51:08 +00:00
parent a990ff2920
commit fd30be5545
2 changed files with 4 additions and 2 deletions

View file

@ -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 */