From fd30be55454cfd88c1cbbecb30f1fb483e40f2da Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 10 Mar 2007 12:51:08 +0000 Subject: Fix the database browser not remembering its selected item git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12705 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index e4237dc598..d58c05deb7 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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 */ -- cgit v1.2.3