mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
fix crash in user_menue when ITEM_EPG_MISC is selected
This commit is contained in:
@@ -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 );
|
||||||
|
Reference in New Issue
Block a user