From 967d9b0b03c8937ff766a6c8f5c9b621d2529391 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 28 Dec 2005 11:35:33 +0100 Subject: [PATCH] Fixed finding the actual timer for Record/Timer button --- menu.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/menu.c b/menu.c index e97e95b1..4a03c229 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.380 2005/12/27 14:54:47 kls Exp $ + * $Id: menu.c 1.381 2005/12/28 11:35:33 kls Exp $ */ #include "menu.h" @@ -1075,6 +1075,12 @@ eOSState cMenuWhatsOn::Record(void) { cMenuScheduleItem *item = (cMenuScheduleItem *)Get(Current()); if (item) { + if (item->timerMatch == tmFull) { + int tm = tmNone; + cTimer *timer = Timers.GetMatch(item->event, &tm); + if (timer) + return AddSubMenu(new cMenuEditTimer(timer)); + } cTimer *timer = new cTimer(item->event); cTimer *t = Timers.GetTimer(timer); if (t) { @@ -1223,6 +1229,12 @@ eOSState cMenuSchedule::Record(void) { cMenuScheduleItem *item = (cMenuScheduleItem *)Get(Current()); if (item) { + if (item->timerMatch == tmFull) { + int tm = tmNone; + cTimer *timer = Timers.GetMatch(item->event, &tm); + if (timer) + return AddSubMenu(new cMenuEditTimer(timer)); + } cTimer *timer = new cTimer(item->event); cTimer *t = Timers.GetTimer(timer); if (t) {