mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed defining timers that only differ in the day of week
This commit is contained in:
7
timers.c
7
timers.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: timers.c 1.35 2005/09/04 10:53:21 kls Exp $
|
||||
* $Id: timers.c 1.36 2005/09/09 15:22:33 kls Exp $
|
||||
*/
|
||||
|
||||
#include "timers.h"
|
||||
@@ -519,7 +519,10 @@ cTimers::cTimers(void)
|
||||
cTimer *cTimers::GetTimer(cTimer *Timer)
|
||||
{
|
||||
for (cTimer *ti = First(); ti; ti = Next(ti)) {
|
||||
if (ti->Channel() == Timer->Channel() && ti->Day() == Timer->Day() && ti->Start() == Timer->Start() && ti->Stop() == Timer->Stop())
|
||||
if (ti->Channel() == Timer->Channel() &&
|
||||
(ti->WeekDays() && ti->WeekDays() == Timer->WeekDays() || !ti->WeekDays() && ti->Day() == Timer->Day()) &&
|
||||
ti->Start() == Timer->Start() &&
|
||||
ti->Stop() == Timer->Stop())
|
||||
return ti;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user