summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-03 12:55:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-03 12:55:57 +0100
commitb1b4a12848c477ef69a771663c03e131bbca11b8 (patch)
tree35b047e42597714e2e607116464cd0de308169d1
parent7b77f400a1ecd0952376c8fb8607291465730370 (diff)
downloadvdr-b1b4a12848c477ef69a771663c03e131bbca11b8.tar.gz
vdr-b1b4a12848c477ef69a771663c03e131bbca11b8.tar.bz2
Fixed stopping a remote repeating timer
-rw-r--r--menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index b12a31e9..ab23a39d 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.64 2018/02/25 13:54:57 kls Exp $
+ * $Id: menu.c 4.65 2018/03/03 12:55:57 kls Exp $
*/
#include "menu.h"
@@ -3142,6 +3142,7 @@ static bool TimerStillRecording(const char *FileName)
if (Interface->Confirm(tr("Timer still recording - really delete?"))) {
LOCK_TIMERS_WRITE;
if (cTimer *Timer = Timers->GetById(Id, Remote)) {
+ cTimer OldTimer = *Timer;
Timer->Skip();
if (Timer->IsSingleEvent()) {
if (HandleRemoteModifications(NULL, Timer))
@@ -3149,7 +3150,7 @@ static bool TimerStillRecording(const char *FileName)
else
return true; // error while deleting remote timer
}
- else if (!HandleRemoteModifications(Timer))
+ else if (!HandleRemoteModifications(Timer, &OldTimer))
return true; // error while modifying remote timer
}
}