adzap: start adzap directly when ok is pressed on marked item

Origin commit data
------------------
Commit: 817e6dc67e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-10 (Thu, 10 Mar 2016)

Origin message was:
------------------
- adzap: start adzap directly when ok is pressed on marked item
This commit is contained in:
vanhofen
2016-03-10 09:51:34 +01:00
parent 54fc703cf5
commit 67d7a3105f

View File

@@ -245,8 +245,9 @@ int CAdZapMenu::exec(CMenuTarget *parent, const std::string & actionKey)
Init(); Init();
int res = menu_return::RETURN_EXIT_ALL; 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) if (!monitor)
armed = true; armed = true;