infoviewer_bb.cpp CInfoViewerBB::getBBButtonInfo() fix audioname in ts mode

This commit is contained in:
Jacek Jendrzej
2014-12-18 19:08:38 +01:00
parent 25f30a6fa4
commit 0013e139a5

View File

@@ -212,7 +212,7 @@ void CInfoViewerBB::getBBButtonInfo()
bbButtonMaxH = 0;
bbButtonMaxX = g_InfoViewer->ChanInfoX;
int bbButtonMaxW = 0;
int mode;
int mode = NeutrinoMessages::mode_unknown;
for (int i = 0; i < CInfoViewerBB::BUTTON_MAX; i++) {
int w = 0, h = 0;
bool active;
@@ -232,7 +232,8 @@ void CInfoViewerBB::getBBButtonInfo()
icon = NEUTRINO_ICON_BUTTON_GREEN;
frameBuffer->getIconSize(icon.c_str(), &w, &h);
text = CUserMenu::getUserMenuButtonName(1, active);
if (!text.empty())
mode = CNeutrinoApp::getInstance()->getMode();
if (!text.empty() && mode != NeutrinoMessages::mode_ts)
break;
text = g_settings.usermenu[SNeutrinoSettings::BUTTON_GREEN]->title;
if (text == g_Locale->getText(LOCALE_AUDIOSELECTMENUE_HEAD))