diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-25 15:57:56 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-25 15:57:56 +0100 |
commit | 8dec381664bec6cf3090d2414b615c4d51374860 (patch) | |
tree | a872fc6d3b4d1357f6de7603ce7cf2446fc09253 /menu.c | |
parent | 8650649b18444ad79c558fc7ac2b464e074e747e (diff) | |
download | vdr-8dec381664bec6cf3090d2414b615c4d51374860.tar.gz vdr-8dec381664bec6cf3090d2414b615c4d51374860.tar.bz2 |
Improved setting events to timers
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 4 insertions, 2 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.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(); |