From 46085c897854d145b5313c009fb70af428f0e6bd Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 15 Mar 2021 18:54:20 +0100 Subject: Restore playlist state as necessary before checking whether current playlist has been modified Rockbox would previously not present a warning when you were about to replace a modified playlist after restarting the player, unless you first resumed playback. Change-Id: I9752228f84b105747e41ce6e1c8f95f0f9f14c10 --- apps/playlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/playlist.c b/apps/playlist.c index 6f26b6beda..2c3fa4958e 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -3435,7 +3435,11 @@ int playlist_sort(struct playlist_info* playlist, bool start_current) bool playlist_modified(const struct playlist_info* playlist) { if (!playlist) + { playlist = ¤t_playlist; + if (!playlist->control_created && playlist_resume() == -1) + return false; + } if (playlist->shuffle_modified || playlist->deleted || -- cgit v1.2.3