summaryrefslogtreecommitdiffstats
path: root/apps/tagtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c6
1 files changed, 6 insertions, 0 deletions
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;