summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-10 12:25:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-10 12:25:52 +0100
commitb678d5812cd4279a8f7b03c7810cd2298ba1476a (patch)
tree888be8f17541f0f09511135a2e92f59cec7f1978 /timers.c
parentdcbcd188904f4ddc09bbe5f60d35dea08e0eedfc (diff)
downloadvdr-b678d5812cd4279a8f7b03c7810cd2298ba1476a.tar.gz
vdr-b678d5812cd4279a8f7b03c7810cd2298ba1476a.tar.bz2
Fixed a loss of a timer's 'recording' flag after modifying it via MODT
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index f70ab9d1..8d20670e 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.68 2007/08/04 09:23:33 kls Exp $
+ * $Id: timers.c 1.69 2008/02/10 12:22:02 kls Exp $
*/
#include "timers.h"
@@ -99,13 +99,14 @@ cTimer::~cTimer()
cTimer& cTimer::operator= (const cTimer &Timer)
{
if (&Timer != this) {
+ uint OldFlags = flags & tfRecording;
startTime = Timer.startTime;
stopTime = Timer.stopTime;
lastSetEvent = 0;
recording = Timer.recording;
pending = Timer.pending;
inVpsMargin = Timer.inVpsMargin;
- flags = Timer.flags;
+ flags = Timer.flags | OldFlags;
channel = Timer.channel;
day = Timer.day;
weekdays = Timer.weekdays;