From 686831caf5e314c424e1411f2c33df7e25c9b695 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 20 Apr 2017 10:08:04 +0200 Subject: Fixed editing a remote timer immediately after it has been created --- menu.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index ba468095..357aaf83 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.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)) -- cgit v1.2.3