From 9a9e36193eb398bcdcb99f39ac9f5fab8fa134f3 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 8 Nov 2013 15:50:10 +0400 Subject: [PATCH] gui/scan_setup.cpp: disable frontend setup, if record running Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7c4b9d3fdd768fe687bf65642a5aa22686216a4f Author: [CST] Focus Date: 2013-11-08 (Fri, 08 Nov 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/scan_setup.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 5bbe9e787..fca95d6e6 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -523,6 +523,7 @@ int CScanSetup::showScanMenuFrontendSetup() int shortcut = 1; fe_restart = false; + allow_start = !CRecordManager::getInstance()->RecordingStatus() || CRecordManager::getInstance()->TimeshiftOnly(); CZapit::getInstance()->GetConfig(zapitCfg); CMenuWidget * setupMenu = new CMenuWidget(LOCALE_SATSETUP_FE_SETUP, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_SCAN_FE_SETUP); @@ -565,7 +566,8 @@ int CScanSetup::showScanMenuFrontendSetup() } modestr[i] = g_Locale->getText(getModeLocale(fe->getMode())); - mf = new CMenuForwarderNonLocalized(name, true, modestr[i], this, tmp, key, icon); + + mf = new CMenuForwarderNonLocalized(name, allow_start, modestr[i], this, tmp, key, icon); mf->setHint("", LOCALE_MENU_HINT_SCAN_SETUP_FE); setupMenu->addItem(mf); if(i != 0)