make enabling random always randomize the entire playlist
git-svn-id: https://svn.musicpd.org/mpd/trunk@1400 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
62df71cf36
commit
4959c30678
|
@ -1041,11 +1041,11 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
|
|||
|
||||
if(status!=statusWas) {
|
||||
if(playlist.random) {
|
||||
if(playlist_state==PLAYLIST_STATE_PLAY) {
|
||||
/*if(playlist_state==PLAYLIST_STATE_PLAY) {
|
||||
randomizeOrder(playlist.current+1,
|
||||
playlist.length-1);
|
||||
}
|
||||
else randomizeOrder(0,playlist.length-1);
|
||||
else */randomizeOrder(0,playlist.length-1);
|
||||
}
|
||||
else orderPlaylist();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue