From 7211db59ff1c6690631dcd21114654527430df39 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 31 Mar 2022 13:16:26 +0200 Subject: ui_act: Improve station management query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When there are no seeds (i.e. genre station), do not display initial “Delete”. --- src/ui_act.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui_act.c b/src/ui_act.c index ace50ce..30bd4e5 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -785,7 +785,12 @@ BarUiActCallback(BarUiActManageStation) { } /* enable submenus depending on data availability */ - strcpy (question, "Delete "); + if (reqData.info.artistSeeds != NULL || + reqData.info.songSeeds != NULL || + reqData.info.stationSeeds != NULL || + reqData.info.feedback != NULL) { + strcpy (question, "Delete "); + } if (reqData.info.artistSeeds != NULL) { strcat (question, "[a]rtist"); *allowedPos++ = 'a'; -- cgit v1.2.3