Single event timers are now deleted if the recording they are doing is deleted before the timer ends

This commit is contained in:
Klaus Schmidinger 2003-05-29 11:39:29 +02:00
parent 33079db2de
commit 984c51ef91
2 changed files with 8 additions and 1 deletions

View File

@ -2221,3 +2221,5 @@ Video Disk Recorder Revision History
breaking off replay in case the user hits "Play" or "Pause" too soon (thanks breaking off replay in case the user hits "Play" or "Pause" too soon (thanks
to Karim Afifi for reporting ths one). to Karim Afifi for reporting ths one).
- Some corrections to the Catalanian OSD texts (thanks to Jordi Vilà). - Some corrections to the Catalanian OSD texts (thanks to Jordi Vilà).
- Single event timers are now deleted if the recording they are doing is
deleted before the timer ends.

7
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.250 2003/05/29 09:35:28 kls Exp $ * $Id: menu.c 1.251 2003/05/29 11:35:52 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -1862,6 +1862,11 @@ eOSState cMenuRecordings::Delete(void)
if (timer) { if (timer) {
timer->Skip(); timer->Skip();
cRecordControls::Process(time(NULL)); cRecordControls::Process(time(NULL));
if (timer->IsSingleEvent()) {
int Index = timer->Index();
Timers.Del(timer);
isyslog("timer %d deleted", Index + 1);
}
Timers.Save(); Timers.Save();
} }
} }