aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-06-30 21:40:33 +0200
committerMax Kellermann <max@duempel.org>2010-06-30 21:40:33 +0200
commit0a0c78674f8ca6ffce08feabd7c292133fd2d86e (patch)
tree95e319efb52254535fa6d32894a296a706e659c5 /src
parent1bffdabe41471b994f43809d3ca18fd54ac8bf66 (diff)
downloadmpd-0a0c78674f8ca6ffce08feabd7c292133fd2d86e.tar.gz
mpd-0a0c78674f8ca6ffce08feabd7c292133fd2d86e.tar.xz
mpd-0a0c78674f8ca6ffce08feabd7c292133fd2d86e.zip
playlist: emit IDLE_OPTIONS when resetting single mode
Diffstat (limited to 'src')
-rw-r--r--src/playlist_control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist_control.c b/src/playlist_control.c
index 4359611fd..4c156f0f5 100644
--- a/src/playlist_control.c
+++ b/src/playlist_control.c
@@ -24,6 +24,7 @@
#include "playlist_internal.h"
#include "player_control.h"
+#include "idle.h"
#include <glib.h>
@@ -156,6 +157,8 @@ nextSongInPlaylist(struct playlist *playlist)
if (next_order < 0) {
/* cancel single */
playlist->queue.single = false;
+ idle_add(IDLE_OPTIONS);
+
/* no song after this one: stop playback */
stopPlaylist(playlist);