From 9bdf2834209ac5e3eca43b6eecca1321da321b49 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 16 Apr 2013 13:17:17 +0400 Subject: [PATCH] gui/cam_menu.cpp: add option to ignore CI/card messages Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ae1ae59b6860fb6d2b871300787c9f0dae175c72 Author: [CST] Focus Date: 2013-04-16 (Tue, 16 Apr 2013) --- src/gui/cam_menu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/cam_menu.cpp b/src/gui/cam_menu.cpp index 67323bf0a..23ca51949 100644 --- a/src/gui/cam_menu.cpp +++ b/src/gui/cam_menu.cpp @@ -110,6 +110,7 @@ int CCAMMenuHandler::doMainMenu() if(true /* CiSlots */) { cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_RESET_STANDBY, &g_settings.ci_standby_reset, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); cammenu->addItem( new CMenuOptionNumberChooser(LOCALE_CI_CLOCK, &g_settings.ci_clock, true, 6, 12, this)); + cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_IGNORE_MSG, &g_settings.ci_ignore_messages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); cammenu->addItem( GenericMenuSeparatorLine ); } @@ -223,6 +224,9 @@ int CCAMMenuHandler::handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t if (msg != NeutrinoMessages::EVT_CA_MESSAGE) return from_menu ? 1 : -1; + if (g_settings.ci_ignore_messages && !from_menu) + return 1; + rMsg = (CA_MESSAGE *)data; if (!rMsg) return -1;