From 6325971451fc593006f3703353ef02db7c92ee1c Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 21 Oct 2021 23:33:48 +0200 Subject: Warn before replacing playlist when “Insert” hotkey is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes warning for "Insert" hotkey consistent with that of "Insert Shuffled hotkey" (both will result in the current playlist being erased if playback is stopped). Change-Id: I7c6a01438c227a963209b8689ee6941b820a004d --- apps/onplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/onplay.c b/apps/onplay.c index f8233da92c..8f2c3c4f4a 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -567,8 +567,8 @@ static bool view_playlist(void) static int playlist_insert_func(void *param) { if (((intptr_t)param == PLAYLIST_REPLACE || - ((intptr_t)param == PLAYLIST_INSERT_SHUFFLED && !(audio_status() & AUDIO_STATUS_PLAY))) && - !warn_on_pl_erase()) + (((intptr_t)param == PLAYLIST_INSERT_SHUFFLED || (intptr_t)param == PLAYLIST_INSERT) + && !(audio_status() & AUDIO_STATUS_PLAY))) && !warn_on_pl_erase()) return 0; add_to_playlist((intptr_t)param, false); return 0; -- cgit v1.2.3