diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-10 12:51:08 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-10 12:51:08 +0000 |
commit | fd30be55454cfd88c1cbbecb30f1fb483e40f2da (patch) | |
tree | 37f2ba924ddd5b6a2b4daa2cd007c47053a074a7 /apps/tree.c | |
parent | a990ff2920884ba6810dd222fd99ca627fd0e5d6 (diff) | |
download | rockbox-fd30be55454cfd88c1cbbecb30f1fb483e40f2da.tar.gz rockbox-fd30be55454cfd88c1cbbecb30f1fb483e40f2da.zip |
Fix the database browser not remembering its selected item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12705 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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() | |||
632 | if (returned_button == ACTION_STD_CANCEL) | 632 | if (returned_button == ACTION_STD_CANCEL) |
633 | button = ACTION_STD_CANCEL; | 633 | button = ACTION_STD_CANCEL; |
634 | 634 | ||
635 | tc.selected_item = gui_synclist_get_sel_pos(&tree_lists); | ||
635 | switch ( button ) { | 636 | switch ( button ) { |
636 | case ACTION_STD_OK: | 637 | case ACTION_STD_OK: |
637 | /* nothing to do if no files to display */ | 638 | /* nothing to do if no files to display */ |
@@ -933,7 +934,6 @@ int dirbrowse() | |||
933 | } | 934 | } |
934 | 935 | ||
935 | if(need_update) { | 936 | if(need_update) { |
936 | tc.selected_item = gui_synclist_get_sel_pos(&tree_lists); | ||
937 | need_update=false; | 937 | need_update=false; |
938 | if ( numentries > 0 ) { | 938 | if ( numentries > 0 ) { |
939 | /* Voice the file if changed */ | 939 | /* Voice the file if changed */ |