From adac2c88803962ad10375676e2c4e82ba25ea40b Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 11 Mar 2021 17:26:25 +0100 Subject: Fix "Create Playlist" option in context menu of "Playlist Catalogue" If the previously selected directory in the file browser was the playlist directory, creating a playlist with all files wouldn't work due to the fact that PLAYLIST_CATALOG_DEFAULT_DIR has an unexpected duplicate leading '/'. The initialize_catalog function makes sure to remove this from playlist_dir. Change-Id: I0f8300140fa23321d362d2a75dfaf82be0b4b12a --- apps/playlist_catalog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c index 1181f73e3f..9d31ac333c 100644 --- a/apps/playlist_catalog.c +++ b/apps/playlist_catalog.c @@ -342,8 +342,7 @@ bool catalog_add_to_a_playlist(const char* sel, int sel_attr, /* If sel is empty, root, or playlist directory we use 'all' */ if (!sel || !strcmp(sel, "/") || !strcmp(sel, playlist_dir)) { - if (!sel || !strcmp(sel, PLAYLIST_CATALOG_DEFAULT_DIR)) - sel = "/"; + sel = "/"; name = "/all"; } else /*If sel is a folder, we prefill the text field with its name*/ -- cgit v1.2.3