From be3f29cc11a1d31a4bacee16a8ca2f1a9de2caed Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 26 Dec 2006 13:31:04 +0000 Subject: Accept FS#6464 by Chris Taylor. Adds a "Play Next" playlist insertion option which replaces the current playlist with the new selection but keeps the current track queued so playback doesnt stop. (minor fixes by me) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11842 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagtree.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/tagtree.c') diff --git a/apps/tagtree.c b/apps/tagtree.c index d75b9eb667..d5d70ac206 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -1468,6 +1468,12 @@ static bool insert_all_playlist(struct tree_context *c, int position, bool queue return false; } + if (position == PLAYLIST_REPLACE) + { + if (remove_all_tracks(NULL) == 0) + position = PLAYLIST_INSERT_LAST; + else return -1; } + if (position == PLAYLIST_INSERT_FIRST) { from = c->filesindir - 1; -- cgit v1.2.3