diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-25 14:14:32 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-25 14:14:32 +0200 |
commit | ffc7a80577572c630c75845df527b37072ab66bb (patch) | |
tree | 824b3065887de1708e92fad6f6f744eaee7d8add /menu.c | |
parent | ecd74adecabbc071b8bace467e65351a4cd7c45d (diff) | |
download | vdr-ffc7a80577572c630c75845df527b37072ab66bb.tar.gz vdr-ffc7a80577572c630c75845df527b37072ab66bb.tar.bz2 |
It is now possible to directly delete a timer that is currently recording1.1.33
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 26 |
1 files changed, 15 insertions, 11 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.248 2003/05/25 13:53:53 kls Exp $ + * $Id: menu.c 1.249 2003/05/25 14:06:17 kls Exp $ */ #include "menu.h" @@ -1053,18 +1053,22 @@ eOSState cMenuTimers::Delete(void) // Check if this timer is active: cTimer *ti = CurrentTimer(); if (ti) { - if (!ti->Recording()) { - if (Interface->Confirm(tr("Delete timer?"))) { - int Index = ti->Index(); - Timers.Del(ti); - cOsdMenu::Del(Current()); - Timers.Save(); - Display(); - isyslog("timer %d deleted", Index + 1); + if (Interface->Confirm(tr("Delete timer?"))) { + if (ti->Recording()) { + if (Interface->Confirm(tr("Timer still recording - really delete?"))) { + ti->Skip(); + cRecordControls::Process(time(NULL)); + } + else + return osContinue; } + int Index = ti->Index(); + Timers.Del(ti); + cOsdMenu::Del(Current()); + Timers.Save(); + Display(); + isyslog("timer %d deleted", Index + 1); } - else - Interface->Error(tr("Timer is recording!")); } return osContinue; } |