From 3cf2a4dbfb6c2d520c329a11b13ca80e8830b88f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 26 Dec 2017 22:58:36 +0100 Subject: [PATCH] Channellist: only show lock icon if parental lock is active additionally, remove the icon on change to an unlocked bouquet Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8ab511fdbcd4db254f891ed103ba057f74837e90 Author: Stefan Seyfried Date: 2017-12-26 (Tue, 26 Dec 2017) ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 8bfcc6284..2b71372fd 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2165,8 +2165,12 @@ void CChannelList::paintHead() header->setDimensionsAll(x, y, full_width, theight); header->setCorner(RADIUS_LARGE, CORNER_TOP); - if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked != g_settings.parentallock_defaultlocked) + if ((g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED) && + bouquet && bouquet->zapitBouquet && + (bouquet->zapitBouquet->bLocked != g_settings.parentallock_defaultlocked)) header->setIcon(NEUTRINO_ICON_LOCK); + else + header->setIcon(NULL); std::string header_txt = !edit_state ? name : std::string(g_Locale->getText(LOCALE_CHANNELLIST_EDIT)) + ": " + name; fb_pixel_t header_txt_col = (edit_state ? COL_RED : COL_MENUHEAD_TEXT);