From acc4cbfd6c89fa00fe7927ff2f22d4c9da9b79a0 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 28 Mar 2014 16:12:02 +0400 Subject: [PATCH] gui/bouquetlist.cpp: fix crash Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6934981f3037b4b38cb81e4918427b078d1f4115 Author: [CST] Focus Date: 2014-03-28 (Fri, 28 Mar 2014) --- src/gui/bouquetlist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index 704f72d6f..463edd03c 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -294,9 +294,11 @@ 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 ++); - bool old_epg = zapitBouquet->bScanEpg; - if (zapitBouquet && (g_settings.epg_scan == CEpgScan::SCAN_SEL)) + bool old_epg; + if (zapitBouquet && (g_settings.epg_scan == CEpgScan::SCAN_SEL)) { + old_epg = zapitBouquet->bScanEpg; 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;