summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-25 15:57:56 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-25 15:57:56 +0100
commit8dec381664bec6cf3090d2414b615c4d51374860 (patch)
treea872fc6d3b4d1357f6de7603ce7cf2446fc09253 /menu.c
parent8650649b18444ad79c558fc7ac2b464e074e747e (diff)
downloadvdr-8dec381664bec6cf3090d2414b615c4d51374860.tar.gz
vdr-8dec381664bec6cf3090d2414b615c4d51374860.tar.bz2
Improved setting events to timers
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index ecc5225f..d15c017f 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.421 2006/02/25 15:00:09 kls Exp $
+ * $Id: menu.c 1.422 2006/02/25 15:41:40 kls Exp $
*/
#include "menu.h"
@@ -691,6 +691,7 @@ eOSState cMenuEditTimer::ProcessKey(eKeys Key)
if (addIfConfirmed)
Timers.Add(timer);
timer->Matches();
+ timer->SetEventFromSchedule();
Timers.SetModified();
isyslog("timer %s %s (%s)", *timer->ToDescr(), addIfConfirmed ? "added" : "modified", timer->HasFlags(tfActive) ? "active" : "inactive");
addIfConfirmed = false;
@@ -828,6 +829,7 @@ eOSState cMenuTimers::OnOff(void)
cTimer *timer = CurrentTimer();
if (timer) {
timer->OnOff();
+ timer->SetEventFromSchedule();
RefreshCurrent();
DisplayCurrent(true);
if (timer->FirstDay())
@@ -896,7 +898,7 @@ eOSState cMenuTimers::ProcessKey(eKeys Key)
if (state == osUnknown) {
switch (Key) {
case kOk: return Edit();
- case kRed: return OnOff();
+ case kRed: state = OnOff(); break; // must go through SetHelpKeys()!
case kGreen: return New();
case kYellow: return Delete();
case kBlue: return Info();