summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-01-12 13:51:01 +0100
committerLars-Dominik Braun <lars@6xq.net>2014-01-12 13:51:01 +0100
commitb91dada75f804ccca64644f6d40276db4815f4b3 (patch)
tree66fa0f5cc3850cf7a6a0efac28c108030813122d /src
parent9d5682f8acf991b060119a39bc8aa447175cd294 (diff)
downloadpianobar-windows-b91dada75f804ccca64644f6d40276db4815f4b3.tar.gz
pianobar-windows-b91dada75f804ccca64644f6d40276db4815f4b3.tar.bz2
pianobar-windows-b91dada75f804ccca64644f6d40276db4815f4b3.zip
Return if station info request fails
Diffstat (limited to 'src')
-rw-r--r--src/ui_act.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 8cf6c2b..4584117 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -675,8 +675,12 @@ BarUiActCallback(BarUiActManageStation) {
reqData.station = selStation;
BarUiMsg (&app->settings, MSG_INFO, "Fetching station info... ");
- BarUiActDefaultPianoCall (PIANO_REQUEST_GET_STATION_INFO, &reqData);
+ const bool bret = BarUiActDefaultPianoCall (PIANO_REQUEST_GET_STATION_INFO,
+ &reqData);
BarUiActDefaultEventcmd ("stationfetchinfo");
+ if (!bret) {
+ return;
+ }
/* enable submenus depending on data availability */
strcpy (question, "Delete ");