From 817e6dc67e3b165d33b8992425d26d80eeccb97b Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 10 Mar 2016 09:51:34 +0100 Subject: [PATCH] - adzap: start adzap directly when ok is pressed on marked item --- src/gui/adzap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/adzap.cpp b/src/gui/adzap.cpp index 695b13a13..e6d51740c 100644 --- a/src/gui/adzap.cpp +++ b/src/gui/adzap.cpp @@ -245,8 +245,9 @@ int CAdZapMenu::exec(CMenuTarget *parent, const std::string & actionKey) Init(); int res = menu_return::RETURN_EXIT_ALL; + bool marked_ok = (actionKey.length() == 1 && g_settings.adzap_zapBackPeriod == (actionKey[0] - '0') * 60); - if (actionKey == "enable") + if (actionKey == "enable" || marked_ok) { if (!monitor) armed = true;