From 87d5cfe4b76aaa02aac802c32d63064a2bfe9736 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sun, 1 Jun 2003 00:41:46 +0000 Subject: Patch #700467, corrects a bug when shuffling with play-selected-first set to No git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3714 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps') diff --git a/apps/tree.c b/apps/tree.c index 4499863..acfc7ee 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -906,9 +906,16 @@ bool dirbrowse(char *root) if ( global_settings.resume ) strncpy(global_settings.resume_file, currdir, MAX_PATH); + start_index = build_playlist(dircursor+dirstart); + /* when shuffling dir.: play all files even if the + file selected by user is not the first one */ + if (global_settings.playlist_shuffle + && !global_settings.play_selected) + start_index = 0; + /* it is important that we get back the index in the (shuffled) list and store that */ start_index = play_list(currdir, NULL, -- cgit v1.1