summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-09 15:28:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-09 15:28:26 +0200
commit7673d5124a00988b5b72c9b4a9e97c9df63454c2 (patch)
treea561a0fdcfff61034495845fc9ac890f5478818f /timers.c
parent116cea5eb63fd1ff1b4e39e16c26a39e2c55730b (diff)
downloadvdr-7673d5124a00988b5b72c9b4a9e97c9df63454c2.tar.gz
vdr-7673d5124a00988b5b72c9b4a9e97c9df63454c2.tar.bz2
Fixed defining timers that only differ in the day of week
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index c95d367e..ff51f109 100644
--- a/timers.c
+++ b/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;