channellist: fix lock icon for default-locked bouquets

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3a222fb5f3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-12 (Thu, 12 Feb 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-02-12 16:38:42 +01:00
committed by Jacek Jendrzej
parent 105b4dd9e8
commit f400e72a63

View File

@@ -2024,7 +2024,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
void CChannelList::paintHead() void CChannelList::paintHead()
{ {
CComponentsHeader header(x, y, full_width, theight, name /*no header icon*/); CComponentsHeader header(x, y, full_width, theight, name /*no header icon*/);
if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked) if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked != g_settings.parentallock_defaultlocked)
header.setIcon(NEUTRINO_ICON_LOCK); header.setIcon(NEUTRINO_ICON_LOCK);
if (edit_state) if (edit_state)
header.setCaption(std::string(g_Locale->getText(LOCALE_CHANNELLIST_EDIT)) + ": " + name); header.setCaption(std::string(g_Locale->getText(LOCALE_CHANNELLIST_EDIT)) + ": " + name);