diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-25 10:59:49 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-25 10:59:49 +0200 |
commit | 9239d3e6dfce588aa87e73480b08f6616570e87a (patch) | |
tree | c0ab29cbfca596ff0d139ce90064696212dc1d07 /menu.c | |
parent | 2d487365a12c857a4c1fd424ce900f7b35855ba1 (diff) | |
download | vdr-9239d3e6dfce588aa87e73480b08f6616570e87a.tar.gz vdr-9239d3e6dfce588aa87e73480b08f6616570e87a.tar.bz2 |
Fixed handling one-shot timers that were already recording and had their start time changed into the future1.1.8
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 2 insertions, 4 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.205 2002/08/15 11:28:08 kls Exp $ + * $Id: menu.c 1.206 2002/08/25 10:56:09 kls Exp $ */ #include "menu.h" @@ -2490,9 +2490,7 @@ void cRecordControl::Stop(bool KeepInstant) cStatus::MsgRecording(device, NULL); DELETENULL(recorder); timer->SetRecording(false); - if ((IsInstant() && !KeepInstant) || (timer->IsSingleEvent() && !timer->Matches())) { - // checking timer->Matches() to make sure we don't delete the timer - // if the program was cancelled before the timer's stop time! + if ((IsInstant() && !KeepInstant) || (timer->IsSingleEvent() && timer->StopTime() <= time(NULL))) { isyslog("deleting timer %d", timer->Index() + 1); Timers.Del(timer); Timers.Save(); |