From 24c4f5c0cdbfb0cf954d53a7b1e0b10b78b3664f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 25 Feb 2015 16:55:03 +0100 Subject: [PATCH] fix crash in user_menue when ITEM_EPG_MISC is selected --- src/gui/user_menue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index 6596035b0..79368a759 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -100,6 +100,7 @@ CUserMenu::~CUserMenu() bool CUserMenu::showUserMenu(neutrino_msg_t msg) { int button = -1; + int dummy = 0; unsigned ums = g_settings.usermenu.size(); for (unsigned int i = 0; i < ums; i++) if (g_settings.usermenu[i]->key == msg) { @@ -235,7 +236,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) break; case SNeutrinoSettings::ITEM_EPG_MISC: { - int dummy = g_Sectionsd->getIsScanningActive(); + dummy = g_Sectionsd->getIsScanningActive(); 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); menu_item = new CMenuOptionChooser(LOCALE_MAINMENU_PAUSESECTIONSD, &dummy, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this , key, icon );