aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morgan <frommusicpd@ziltro.com>2010-09-28 12:52:52 +0200
committerMax Kellermann <max@duempel.org>2010-09-28 12:52:52 +0200
commita59ab3e2ee4407a1c912cdf0d2e09f8670cc3ffe (patch)
tree363c371a5c5bb658bb14bf549c3174e9517eb16f
parent28bcb8bdf568875eeea1349e39b7958d77c8fcc1 (diff)
downloadmpd-a59ab3e2ee4407a1c912cdf0d2e09f8670cc3ffe.tar.gz
mpd-a59ab3e2ee4407a1c912cdf0d2e09f8670cc3ffe.tar.xz
mpd-a59ab3e2ee4407a1c912cdf0d2e09f8670cc3ffe.zip
playlist: make single mode 'sticky'
-rw-r--r--NEWS1
-rw-r--r--src/playlist.c5
2 files changed, 2 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index a1c9feeb1..71c02c165 100644
--- a/NEWS
+++ b/NEWS
@@ -103,6 +103,7 @@ ver 0.16 (20??/??/??)
* added test suite ("make check")
* require GLib 2.12
* added libwrap support
+* make single mode 'sticky'
ver 0.15.12 (2010/07/20)
diff --git a/src/playlist.c b/src/playlist.c
index a63dd62e4..4a1e54814 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -108,11 +108,8 @@ playlist_song_started(struct playlist *playlist)
playlist->current = playlist->queued;
playlist->queued = -1;
- /* Set pause and remove the single mode. */
+ /* Pause if we are in single mode. */
if(playlist->queue.single && !playlist->queue.repeat) {
- playlist->queue.single = false;
- idle_add(IDLE_OPTIONS);
-
pc_set_pause(true);
}