From a816e4624aff8729408473bf7d1f8b3feaaa7c56 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Aug 2002 08:13:58 +0000 Subject: store the correct index in the resume info when we fire up a single song in a directory git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1838 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/tree.c b/apps/tree.c index b1da2bd280..90e978a0ab 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -507,6 +507,7 @@ bool dirbrowse(char *root) play_list(currdir, dircache[dircursor+start].name, 0, 0, seed ); + start_index = 0; } else { if ( global_settings.resume ) @@ -517,7 +518,7 @@ bool dirbrowse(char *root) } if ( global_settings.resume ) { - global_settings.resume_index = 0; + global_settings.resume_index = start_index; global_settings.resume_offset = 0; global_settings.resume_seed = seed; settings_save(); -- cgit v1.2.3