summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-10-17 19:33:56 +0200
committerMax Kellermann <max@musicpd.org>2017-10-18 09:14:27 +0200
commit10990a06846c1766e86fe6af227ceb81fbd3c12d (patch)
treee26df46410f7781686bd38a63b17c1a34fe99c46 /src/queue
parent91254e9211f6fa9864dd8f2d2bb7b43cccf7cb77 (diff)
queue/Playlist: call MoveOrderToCurrent() in SeekSongOrder() on song change
Applies the improvements from the previous commit to the "seek" commands, which are also capable of switching songs. Closes #119
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/PlaylistControl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue/PlaylistControl.cxx b/src/queue/PlaylistControl.cxx
index 2217756dd..4b17386ae 100644
--- a/src/queue/PlaylistControl.cxx
+++ b/src/queue/PlaylistControl.cxx
@@ -223,6 +223,8 @@ playlist::SeekSongOrder(PlayerControl &pc, unsigned i, SongTime seek_time)
/* seeking is not within the current song - prepare
song change */
+ i = MoveOrderToCurrent(i);
+
playing = true;
current = i;