diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-01-12 13:51:01 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-01-12 13:51:01 +0100 |
commit | b91dada75f804ccca64644f6d40276db4815f4b3 (patch) | |
tree | 66fa0f5cc3850cf7a6a0efac28c108030813122d /src | |
parent | 9d5682f8acf991b060119a39bc8aa447175cd294 (diff) | |
download | pianobar-b91dada75f804ccca64644f6d40276db4815f4b3.tar.gz pianobar-b91dada75f804ccca64644f6d40276db4815f4b3.tar.bz2 pianobar-b91dada75f804ccca64644f6d40276db4815f4b3.zip |
Return if station info request fails
Diffstat (limited to 'src')
-rw-r--r-- | src/ui_act.c | 6 |
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 "); |