Commit adc11cb8 authored by Warren Dukes's avatar Warren Dukes

on random select, move current to the first song played

git-svn-id: https://svn.musicpd.org/mpd/trunk@1401 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 4959c306
......@@ -1046,6 +1046,11 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
playlist.length-1);
}
else */randomizeOrder(0,playlist.length-1);
if(playlist.current >= 0 &&
playlist.current < playlist.length)
{
swapOrder(playlist.current, 0);
}
}
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