diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-17 09:44:01 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-17 09:44:01 +0200 |
commit | fa8c7c35b5869497df02253cd7b6fc6da566f423 (patch) | |
tree | 75fe4880677b3c3cb0ab9bb6b2b28208bbca80f0 | |
parent | 3d13eb002fbfe7b303f0f873e59623cb448dff5f (diff) | |
download | vdr-fa8c7c35b5869497df02253cd7b6fc6da566f423.tar.gz vdr-fa8c7c35b5869497df02253cd7b6fc6da566f423.tar.bz2 |
Fixed the timer indicator in the Schedule menu in case an event is already over, but the timer is still recording
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | menu.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -9641,7 +9641,7 @@ Video Disk Recorder Revision History - No longer switching devices for pattern timers (thanks to Helmut Binder). - cTimer::TriggerRespawn() now only acts on local timers. -2021-04-16: +2021-04-17: - When spawning pattern timers, the new function cTimers::GetTimerForEvent() is now used to check whether a matching event already has a local spawned timer. Reason: creating a timer @@ -9656,3 +9656,5 @@ Video Disk Recorder Revision History matching events that would start while the first one is still recording. - Now making sure that spawned timers with reduced start/stop margins actually record with the full margins. +- Fixed the timer indicator in the Schedule menu in case an event is already over, but the + timer is still recording. @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 5.3 2021/01/14 10:29:05 kls Exp $ + * $Id: menu.c 5.4 2021/04/17 09:44:01 kls Exp $ */ #include "menu.h" @@ -1602,7 +1602,7 @@ bool cMenuScheduleItem::Update(const cTimers *Timers, bool Force) eTimerMatch OldTimerMatch = timerMatch; bool OldTimerActive = timerActive; const cTimer *Timer = Timers->GetMatch(event, &timerMatch); - if (event->EndTime() < time(NULL) && !event->IsRunning()) + if (event->EndTime() < time(NULL) && !event->IsRunning() && (!Timer || !Timer->Recording())) timerMatch = tmNone; timerActive = Timer && Timer->HasFlags(tfActive); if (Force || timerMatch != OldTimerMatch || timerActive != OldTimerActive) { |