Commit 4959c306 authored by Warren Dukes's avatar Warren Dukes

make enabling random always randomize the entire playlist

git-svn-id: https://svn.musicpd.org/mpd/trunk@1400 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 62df71cf
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment