gui/infoviewer.cpp: fix tuner icon display

This commit is contained in:
[CST] Focus
2013-03-26 19:54:29 +04:00
parent fc0571490e
commit d60f6691d6
2 changed files with 6 additions and 7 deletions

View File

@@ -1221,7 +1221,6 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
infoViewerBB->showIcon_SubT();
//infoViewerBB->showIcon_CA_Status(0);
infoViewerBB->showIcon_Resolution();
if (CFEManager::getInstance()->getMode() != CFEManager::FE_MODE_SINGLE)
infoViewerBB->showIcon_Tuner();
}
}

View File

@@ -195,11 +195,8 @@ void CInfoViewerBB::getBBIconInfo()
iconView = checkBBIcon(NEUTRINO_ICON_SCRAMBLED2, &w, &h);
break;
case CInfoViewerBB::ICON_TUNER:
if (CFEManager::getInstance()->getMode() != CFEManager::FE_MODE_SINGLE) {
if (g_settings.infobar_show_tuner == 1) {
if (g_settings.infobar_show_tuner == 1)
iconView = checkBBIcon(NEUTRINO_ICON_TUNER_1, &w, &h);
}
}
break;
default:
break;
@@ -599,6 +596,9 @@ void CInfoViewerBB::showOne_CAIcon()
void CInfoViewerBB::showIcon_Tuner()
{
if(CFEManager::getInstance()->getFrontendCount() <= 1)
return;
std::string icon_name;
switch (CFEManager::getInstance()->getLiveFE()->getNumber()) {
case 1: