disable tech.info if channelist is empty (fix possible segfault)

This commit is contained in:
satbaby
2012-10-20 13:26:27 +02:00
parent 35138088e3
commit 775a4a7229
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ int CInfoMenu::showMenu()
mf->setHint(NEUTRINO_ICON_HINT_DBOXINFO, LOCALE_MENU_HINT_DBOXINFO); mf->setHint(NEUTRINO_ICON_HINT_DBOXINFO, LOCALE_MENU_HINT_DBOXINFO);
info->addItem(mf); info->addItem(mf);
mf = new CMenuForwarder(LOCALE_STREAMINFO_HEAD, true, NULL, &streaminfo, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW); mf = new CMenuForwarder(LOCALE_STREAMINFO_HEAD, !CNeutrinoApp::getInstance()->channelList->isEmpty(), NULL, &streaminfo, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW);
mf->setHint(NEUTRINO_ICON_HINT_STREAMINFO, LOCALE_MENU_HINT_STREAMINFO); mf->setHint(NEUTRINO_ICON_HINT_STREAMINFO, LOCALE_MENU_HINT_STREAMINFO);
info->addItem(mf); info->addItem(mf);

View File

@@ -288,7 +288,7 @@ bool CUserMenu::showUserMenu(int button)
menu_prev = SNeutrinoSettings::ITEM_TECHINFO; menu_prev = SNeutrinoSettings::ITEM_TECHINFO;
streamInfo = new CStreamInfo2(); streamInfo = new CStreamInfo2();
keyhelper.get(&key,&icon,CRCInput::RC_blue); keyhelper.get(&key,&icon,CRCInput::RC_blue);
menu_item = new CMenuForwarder(LOCALE_EPGMENU_STREAMINFO, true, NULL, streamInfo, "-1", key, icon ); menu_item = new CMenuForwarder(LOCALE_EPGMENU_STREAMINFO, !CNeutrinoApp::getInstance()->channelList->isEmpty(), NULL, streamInfo, "-1", key, icon );
menu->addItem(menu_item, false); menu->addItem(menu_item, false);
break; break;
case SNeutrinoSettings::ITEM_GAMES: case SNeutrinoSettings::ITEM_GAMES: