gui/infoviewer_bb.cpp: fix tuner icon display

Origin commit data
------------------
Commit: eedf2f9e49
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-04-16 (Tue, 16 Apr 2013)
This commit is contained in:
[CST] Focus
2013-04-16 12:50:24 +04:00
parent 78169914d5
commit 15a29ba0e2

View File

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