From eb1ef76495f31e70ca0a057d67ce5f153fff84e2 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 28 Mar 2014 18:39:54 +0400 Subject: [PATCH] gui/bouquetlist.cpp: another fix for bouquet epg scan option --- src/gui/bouquetlist.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index c3d22f77d..d50b889ee 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -294,11 +294,9 @@ int CBouquetList::doMenu() return -1; } else { menu->addItem(new CMenuForwarder(LOCALE_BOUQUETEDITOR_DELETE, true, NULL, selector, cnt, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED), old_selected == i ++); - int old_epg = 0; - if (zapitBouquet && (g_settings.epg_scan == CEpgScan::SCAN_SEL)) { - old_epg = zapitBouquet->bScanEpg; + int old_epg = zapitBouquet ? zapitBouquet->bScanEpg : 0; + if (g_settings.epg_scan == CEpgScan::SCAN_SEL) menu->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SCAN, &zapitBouquet->bScanEpg, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); - } menu->exec(NULL, ""); delete menu;