diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-28 11:35:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-28 11:35:33 +0100 |
commit | 967d9b0b03c8937ff766a6c8f5c9b621d2529391 (patch) | |
tree | 6404387be107e1439189fa61b9c809f5c1d09751 /menu.c | |
parent | 0795050f6d128d959c422581bcb21f6e3eac0ff7 (diff) | |
download | vdr-967d9b0b03c8937ff766a6c8f5c9b621d2529391.tar.gz vdr-967d9b0b03c8937ff766a6c8f5c9b621d2529391.tar.bz2 |
Fixed finding the actual timer for Record/Timer button
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) { |