From d994611b8b349f5e94f1d749f103d959c1306b11 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 11 Mar 2018 22:44:48 +0100 Subject: [PATCH] eventlist: re-add RC_0 to execute timerlist, because CST-hardware has no RC_timer key Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c06c984df07b242d8d9d0463aa311884b1ed3dc0 Author: vanhofen Date: 2018-03-11 (Sun, 11 Mar 2018) Origin message was: ------------------ - eventlist: re-add RC_0 to execute timerlist, because CST-hardware has no RC_timer key --- src/gui/eventlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index d3108912b..334427664 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -595,7 +595,7 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna exec(_channel_id, current_channel_name, prev_channel_name, next_channel_name); } } - else if (msg == CRCInput::RC_timer || msg == CRCInput::RC_program) + else if (msg == CRCInput::RC_timer || msg == CRCInput::RC_program || msg == CRCInput::RC_0) { hide(); @@ -1058,7 +1058,7 @@ void CEventList::paintFoot(t_channel_id channel_id) btn_cnt++; //NI timerlist button - buttons[btn_cnt].button = NEUTRINO_ICON_BUTTON_TIMER; + buttons[btn_cnt].button = g_info.hw_caps->has_button_timer ? NEUTRINO_ICON_BUTTON_TIMER : NEUTRINO_ICON_BUTTON_0; buttons[btn_cnt].locale = LOCALE_TIMERLIST_NAME; btn_cnt++;