fix crash in user_menue when ITEM_EPG_MISC is selected

This commit is contained in:
[CST] Focus
2015-02-25 16:55:03 +01:00
committed by svenhoefer
parent 35c5faac67
commit 24c4f5c0cd

View File

@@ -100,6 +100,7 @@ CUserMenu::~CUserMenu()
bool CUserMenu::showUserMenu(neutrino_msg_t msg) bool CUserMenu::showUserMenu(neutrino_msg_t msg)
{ {
int button = -1; int button = -1;
int dummy = 0;
unsigned ums = g_settings.usermenu.size(); unsigned ums = g_settings.usermenu.size();
for (unsigned int i = 0; i < ums; i++) for (unsigned int i = 0; i < ums; i++)
if (g_settings.usermenu[i]->key == msg) { if (g_settings.usermenu[i]->key == msg) {
@@ -235,7 +236,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
break; break;
case SNeutrinoSettings::ITEM_EPG_MISC: case SNeutrinoSettings::ITEM_EPG_MISC:
{ {
int dummy = g_Sectionsd->getIsScanningActive(); dummy = g_Sectionsd->getIsScanningActive();
keyhelper.get(&key,&icon); keyhelper.get(&key,&icon);
// new CMenuOptionChooser(LOCALE_VIDEOMENU_VIDEOMODE, &g_settings.video_Mode, VIDEOMENU_VIDEOMODE_OPTIONS, VIDEOMENU_VIDEOMODE_OPTION_COUNT, true, this, CRCInput::RC_nokey, "", true); // new CMenuOptionChooser(LOCALE_VIDEOMENU_VIDEOMODE, &g_settings.video_Mode, VIDEOMENU_VIDEOMODE_OPTIONS, VIDEOMENU_VIDEOMODE_OPTION_COUNT, true, this, CRCInput::RC_nokey, "", true);
menu_item = new CMenuOptionChooser(LOCALE_MAINMENU_PAUSESECTIONSD, &dummy, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this , key, icon ); menu_item = new CMenuOptionChooser(LOCALE_MAINMENU_PAUSESECTIONSD, &dummy, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this , key, icon );