summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-28 12:36:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-28 12:36:52 +0100
commitc174de392b90865c2ccf534acd428286da2d061f (patch)
tree4445d2a689e80f7b8fd7871f8d5b2fdd747d578e /menu.c
parent58985f6dc1b0e6d6b1ac3cc99075400b163be523 (diff)
downloadvdr-c174de392b90865c2ccf534acd428286da2d061f.tar.gz
vdr-c174de392b90865c2ccf534acd428286da2d061f.tar.bz2
Fixed updating the "Info" button in the "Timers" menu
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index d15c017f..0d555286 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.422 2006/02/25 15:41:40 kls Exp $
+ * $Id: menu.c 1.423 2006/02/28 12:15:43 kls Exp $
*/
#include "menu.h"
@@ -690,8 +690,8 @@ eOSState cMenuEditTimer::ProcessKey(eKeys Key)
*timer = data;
if (addIfConfirmed)
Timers.Add(timer);
- timer->Matches();
timer->SetEventFromSchedule();
+ timer->Matches();
Timers.SetModified();
isyslog("timer %s %s (%s)", *timer->ToDescr(), addIfConfirmed ? "added" : "modified", timer->HasFlags(tfActive) ? "active" : "inactive");
addIfConfirmed = false;
@@ -787,8 +787,10 @@ cMenuTimers::cMenuTimers(void)
:cOsdMenu(tr("Timers"), 2, CHNUMWIDTH, 10, 6, 6)
{
helpKeys = -1;
- for (cTimer *timer = Timers.First(); timer; timer = Timers.Next(timer))
+ for (cTimer *timer = Timers.First(); timer; timer = Timers.Next(timer)) {
+ timer->SetEventFromSchedule(); // make sure the event is current
Add(new cMenuTimerItem(timer));
+ }
Sort();
SetCurrent(First());
SetHelpKeys();
@@ -900,7 +902,7 @@ eOSState cMenuTimers::ProcessKey(eKeys Key)
case kOk: return Edit();
case kRed: state = OnOff(); break; // must go through SetHelpKeys()!
case kGreen: return New();
- case kYellow: return Delete();
+ case kYellow: state = Delete(); break;
case kBlue: return Info();
break;
default: break;