forked from len0rd/rockbox
Delete existing bookmark file when saving a new playlist
Deleting a playlist leaves its bookmark file behind. When a new playlist was saved under the same name as an existing bookmark file, unrelated bookmarks were shown for the new playlist Change-Id: I7332460a5f488c354f41195c8fff4cf4d66f4bbb
This commit is contained in:
parent
ebb7f33a9f
commit
f2af0711b0
1 changed files with 3 additions and 3 deletions
|
@ -420,10 +420,10 @@ bool catalog_pick_new_playlist_name(char *pl_name, size_t buf_size,
|
||||||
apply_playlist_extension(pl_name, buf_size);
|
apply_playlist_extension(pl_name, buf_size);
|
||||||
|
|
||||||
/* warn before overwriting existing (different) playlist */
|
/* warn before overwriting existing (different) playlist */
|
||||||
if ((!curr_pl_name || strcmp(curr_pl_name, pl_name)) &&
|
if (!curr_pl_name || strcmp(curr_pl_name, pl_name))
|
||||||
file_exists(pl_name))
|
|
||||||
{
|
{
|
||||||
do_save = confirm_overwrite_yesno() == YESNO_YES;
|
if (file_exists(pl_name))
|
||||||
|
do_save = confirm_overwrite_yesno() == YESNO_YES;
|
||||||
|
|
||||||
if (do_save) /* delete bookmark file unrelated to new playlist */
|
if (do_save) /* delete bookmark file unrelated to new playlist */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue