diff options
Diffstat (limited to 'views/displaychannelview.c')
-rw-r--r-- | views/displaychannelview.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/displaychannelview.c b/views/displaychannelview.c index 6526530..83e7ef3 100644 --- a/views/displaychannelview.c +++ b/views/displaychannelview.c @@ -545,7 +545,10 @@ void cDisplayChannelView::DrawCurrentWeather(void) { } map < string, string > stringTokens; map < string, int > intTokens; - SetCurrentWeatherTokens(stringTokens, intTokens); + if (!SetCurrentWeatherTokens(stringTokens, intTokens)){ + ClearViewElement(veCurrentWeather); + return; + } ClearViewElement(veCurrentWeather); DrawViewElement(veCurrentWeather, &stringTokens, &intTokens); |