gui/infoviewer_bb.cpp: fix tuner icon display

Origin commit data
------------------
Branch: ni/coolstream
Commit: eedf2f9e49
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-04-16 (Tue, 16 Apr 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-04-16 12:50:24 +04:00
parent 9867a3e921
commit e9edabd12f

View File

@@ -195,7 +195,7 @@ void CInfoViewerBB::getBBIconInfo()
iconView = checkBBIcon(NEUTRINO_ICON_SCRAMBLED2, &w, &h);
break;
case CInfoViewerBB::ICON_TUNER:
if (g_settings.infobar_show_tuner == 1)
if (CFEManager::getInstance()->getEnabledCount() > 1 && g_settings.infobar_show_tuner == 1)
iconView = checkBBIcon(NEUTRINO_ICON_TUNER_1, &w, &h);
break;
default:
@@ -596,7 +596,7 @@ void CInfoViewerBB::showOne_CAIcon()
void CInfoViewerBB::showIcon_Tuner()
{
if(CFEManager::getInstance()->getFrontendCount() <= 1)
if (CFEManager::getInstance()->getEnabledCount() <= 1 || !g_settings.infobar_show_tuner)
return;
std::string icon_name;