From 62a72a5e4d17b802aacda9fd3e5b86492c816804 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 31 Mar 2009 14:05:11 +0200 Subject: do not consider single mode with "next" command This is a little ugly, but as nextSongInPlaylist is both called when queued is update (in case playlist ended) and for user "next" command, there isn't any other (simple) solution --- src/command.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/command.c b/src/command.c index 762db37b3..48f6b8873 100644 --- a/src/command.c +++ b/src/command.c @@ -1013,7 +1013,14 @@ static enum command_return handle_next(G_GNUC_UNUSED struct client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { + /* single mode is not considered when this is user who + * wants to change song. */ + int single = g_playlist.queue.single; + g_playlist.queue.single = false; + nextSongInPlaylist(&g_playlist); + + g_playlist.queue.single = single; return COMMAND_RETURN_OK; } -- cgit v1.2.3