mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Single event timers are now deleted if the recording they are doing is deleted before the timer ends
This commit is contained in:
parent
33079db2de
commit
984c51ef91
2
HISTORY
2
HISTORY
@ -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
7
menu.c
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user