From b97a3e84ed8f41e9d7fe681278c18886b896aa14 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 23 Feb 2017 22:00:42 +0100 Subject: [PATCH] - followscreenings: don't show, when followlist is empty --- src/gui/followscreenings.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/followscreenings.cpp b/src/gui/followscreenings.cpp index e712754cc..2ee471fd6 100644 --- a/src/gui/followscreenings.cpp +++ b/src/gui/followscreenings.cpp @@ -152,10 +152,13 @@ void CFollowScreenings::show() getFollowScreenings(); - if (followlist.size() == 1) { + if (followlist.size() == 1) + { snprintf(actionstr, sizeof(actionstr), "%lu", followlist.front().startTime); exec(NULL, actionstr); - } else { + } + else if (followlist.size() > 1) + { CMenuWidget m(LOCALE_EPGVIEWER_SELECT_SCREENING, NEUTRINO_ICON_SETTINGS); const char *icon = NEUTRINO_ICON_BUTTON_RED; neutrino_msg_t directKey = CRCInput::RC_red;