From c0e1a66f45249842ad50241f45c4293e97876c93 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 3 Nov 2017 09:36:20 +0100 Subject: [PATCH] - zapit: save last channel for webradio too Signed-off-by: Thilo Graf --- src/zapit/src/zapit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index cfb2bb5f3..1049de58b 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -535,7 +535,9 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay lock_channel_id = live_channel_id; current_channel = newchannel; - if (newchannel->getServiceType() == ST_DIGITAL_TELEVISION_SERVICE) + if (newchannel->getServiceType() == ST_DIGITAL_RADIO_SOUND_SERVICE) + lastChannelRadio = channel_id; + else lastChannelTV = channel_id; SendEvent(CZapitClient::EVT_WEBTV_ZAP_COMPLETE, &live_channel_id, sizeof(t_channel_id)); return true;