diff options
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 6 |
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 | |||
1468 | return false; | 1468 | return false; |
1469 | } | 1469 | } |
1470 | 1470 | ||
1471 | if (position == PLAYLIST_REPLACE) | ||
1472 | { | ||
1473 | if (remove_all_tracks(NULL) == 0) | ||
1474 | position = PLAYLIST_INSERT_LAST; | ||
1475 | else return -1; } | ||
1476 | |||
1471 | if (position == PLAYLIST_INSERT_FIRST) | 1477 | if (position == PLAYLIST_INSERT_FIRST) |
1472 | { | 1478 | { |
1473 | from = c->filesindir - 1; | 1479 | from = c->filesindir - 1; |