1
0
Fork 0
forked from len0rd/rockbox

Don't shorten the playlist on shuffle. Fixes FS#13040

Change-Id: Ia482ac8248d831a5364ec7bf4d2ccb7b361d2f05
This commit is contained in:
Thomas White 2015-03-11 22:43:42 +01:00 committed by Thomas Martitz
parent ea334cf650
commit d5ead5c8fa

View file

@ -475,8 +475,8 @@ static bool update_playlist(bool force)
} }
/* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen. /* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen.
Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist Returns -1 if USB attached, 0 if no playlist change, 1 if playlist
changed. */ changed, 2 if a track was removed from the playlist */
static int onplay_menu(int index) static int onplay_menu(int index)
{ {
int result, ret = 0; int result, ret = 0;
@ -533,7 +533,7 @@ static int onplay_menu(int index)
} }
} }
} }
ret = 1; ret = 2;
break; break;
case 3: case 3:
/* move track */ /* move track */
@ -818,7 +818,8 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
else if (ret_val > 0) else if (ret_val > 0)
{ {
/* Playlist changed */ /* Playlist changed */
gui_synclist_del_item(&playlist_lists); if (ret_val == 2)
gui_synclist_del_item(&playlist_lists);
update_playlist(true); update_playlist(true);
if (viewer.num_tracks <= 0) if (viewer.num_tracks <= 0)
exit = true; exit = true;