summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 4499863ae2..acfc7ee263 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -906,9 +906,16 @@ bool dirbrowse(char *root)
906 if ( global_settings.resume ) 906 if ( global_settings.resume )
907 strncpy(global_settings.resume_file, 907 strncpy(global_settings.resume_file,
908 currdir, MAX_PATH); 908 currdir, MAX_PATH);
909
909 start_index = 910 start_index =
910 build_playlist(dircursor+dirstart); 911 build_playlist(dircursor+dirstart);
911 912
913 /* when shuffling dir.: play all files even if the
914 file selected by user is not the first one */
915 if (global_settings.playlist_shuffle
916 && !global_settings.play_selected)
917 start_index = 0;
918
912 /* it is important that we get back the index 919 /* it is important that we get back the index
913 in the (shuffled) list and store that */ 920 in the (shuffled) list and store that */
914 start_index = play_list(currdir, NULL, 921 start_index = play_list(currdir, NULL,