diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-03-03 12:55:57 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-03-03 12:55:57 +0100 |
commit | b1b4a12848c477ef69a771663c03e131bbca11b8 (patch) | |
tree | 35b047e42597714e2e607116464cd0de308169d1 /menu.c | |
parent | 7b77f400a1ecd0952376c8fb8607291465730370 (diff) | |
download | vdr-b1b4a12848c477ef69a771663c03e131bbca11b8.tar.gz vdr-b1b4a12848c477ef69a771663c03e131bbca11b8.tar.bz2 |
Fixed stopping a remote repeating timer
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } } |