From 35e543c8f7ed33c40d2c7b241c1eb20cc7524092 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 24 Jan 2011 21:46:05 +0100 Subject: mark current playing track as "played" after changing shuffle mode, to prevent repeating --- playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 35bb9e79..a9ae7b23 100644 --- a/playlist.c +++ b/playlist.c @@ -96,7 +96,7 @@ static int pl_order; // mirrors "playback.order" config variable void pl_set_order (int order) { - if (pl_order != order) { + if (pl_order != order && (pl_order == PLAYBACK_ORDER_SHUFFLE_TRACKS || PLAYBACK_ORDER_SHUFFLE_ALBUMS)) { pl_order = order; for (playlist_t *plt = playlists_head; plt; plt = plt->next) { plt_reshuffle (plt, NULL, NULL); -- cgit v1.2.3