summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2022-03-31 13:16:26 +0200
committerLars-Dominik Braun <lars@6xq.net>2022-03-31 13:16:36 +0200
commit7211db59ff1c6690631dcd21114654527430df39 (patch)
treef239e293e02f08673fb6dabbd1a2877e43f1ff8d /src
parent0d881fcb81cf5e95527e8dacf81fb34e93109d66 (diff)
downloadpianobar-7211db59ff1c6690631dcd21114654527430df39.tar.gz
pianobar-7211db59ff1c6690631dcd21114654527430df39.tar.bz2
pianobar-7211db59ff1c6690631dcd21114654527430df39.zip
ui_act: Improve station management query
When there are no seeds (i.e. genre station), do not display initial “Delete”.
Diffstat (limited to 'src')
-rw-r--r--src/ui_act.c7
1 files changed, 6 insertions, 1 deletions
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';