diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-10 10:54:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-10 10:54:33 +0100 |
commit | 30650b9c13869fed015d0e657b8ce23fa5ee09ca (patch) | |
tree | 925f25a197c60adad34da77e7879c6d5a81a73f3 /menu.c | |
parent | 5976079fd3ceae44c2d79901e8f80800719a4e9d (diff) | |
download | vdr-30650b9c13869fed015d0e657b8ce23fa5ee09ca.tar.gz vdr-30650b9c13869fed015d0e657b8ce23fa5ee09ca.tar.bz2 |
Fixed updating the Timers menu after turning a local timer on/off with the Red button
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 4 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.57 2018/02/01 15:48:54 kls Exp $ + * $Id: menu.c 4.58 2018/02/10 10:51:49 kls Exp $ */ #include "menu.h" @@ -1295,7 +1295,8 @@ eOSState cMenuTimers::OnOff(void) { if (HasSubMenu()) return osContinue; - cTimers::GetTimersWrite(timersStateKey); + cStateKey StateKey; + cTimers::GetTimersWrite(StateKey); cTimer *Timer = GetTimer(); if (Timer) { Timer->OnOff(); @@ -1313,7 +1314,7 @@ eOSState cMenuTimers::OnOff(void) else isyslog("%sactivated timer %s", Timer->HasFlags(tfActive) ? "" : "de", *Timer->ToDescr()); } - timersStateKey.Remove(Timer != NULL); + StateKey.Remove(Timer != NULL); return osContinue; } |