forked from len0rd/rockbox
Playlist Viewer: Fix dir not updated after playlist removal
Missed this in 6a865f2430
If you entered the Playlist Viewer using the
context menu option "View", instead of from
the Playlist Catalogue, a playlist file that was
deleted due to the removal of all of its tracks
would still be displayed in the directory when
returning
Change-Id: I54ca34f70344e289d9e2cb413ee2a38e5bd7a92b
This commit is contained in:
parent
00066a4927
commit
018ccf4e47
1 changed files with 3 additions and 0 deletions
|
@ -647,7 +647,10 @@ static void close_playlist_viewer(void)
|
||||||
save_playlist_screen(viewer.playlist);
|
save_playlist_screen(viewer.playlist);
|
||||||
else if (!viewer.num_tracks &&
|
else if (!viewer.num_tracks &&
|
||||||
confirm_delete_yesno(viewer.playlist->filename) == YESNO_YES)
|
confirm_delete_yesno(viewer.playlist->filename) == YESNO_YES)
|
||||||
|
{
|
||||||
remove(viewer.playlist->filename);
|
remove(viewer.playlist->filename);
|
||||||
|
reload_directory();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
playlist_close(viewer.playlist);
|
playlist_close(viewer.playlist);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue