diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-04-20 10:08:04 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-04-20 10:08:04 +0200 |
commit | 686831caf5e314c424e1411f2c33df7e25c9b695 (patch) | |
tree | 294912aec8115a442cfa92da6e2601942d0231b5 /menu.c | |
parent | 1efd5e6b7e2bc3cc75fb547f28799f7c32fb08aa (diff) | |
download | vdr-686831caf5e314c424e1411f2c33df7e25c9b695.tar.gz vdr-686831caf5e314c424e1411f2c33df7e25c9b695.tar.bz2 |
Fixed editing a remote timer immediately after it has been created
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 10 |
1 files changed, 7 insertions, 3 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.24 2017/04/03 12:26:23 kls Exp $ + * $Id: menu.c 4.25 2017/04/20 09:15:49 kls Exp $ */ #include "menu.h" @@ -1088,8 +1088,12 @@ eOSState cMenuEditTimer::ProcessKey(eKeys Key) case kOk: if (timer) { LOCK_TIMERS_WRITE; if (!addIfConfirmed && !Timers->Contains(timer)) { - Skins.Message(mtWarning, tr("Timer has been deleted!")); - break; + if (cTimer *t = Timers->GetById(timer->Id(), timer->Remote())) + timer = t; + else { + Skins.Message(mtWarning, tr("Timer has been deleted!")); + break; + } } LOCK_CHANNELS_READ; if (const cChannel *Channel = Channels->GetByNumber(channel)) |