1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed updating the Timers menu after turning a local timer on/off with the Red button

This commit is contained in:
Klaus Schmidinger 2018-02-10 10:54:33 +01:00
parent 5976079fd3
commit 30650b9c13
2 changed files with 7 additions and 4 deletions

View File

@ -9162,7 +9162,7 @@ Video Disk Recorder Revision History
a subdirectory. a subdirectory.
- SVDRP peering can now be limited to the default SVDRP host (see MANUAL for details). - SVDRP peering can now be limited to the default SVDRP host (see MANUAL for details).
2018-02-09: Version 2.3.9 2018-02-10: Version 2.3.9
- Updated the Italian OSD texts (thanks to Diego Pierotto). - Updated the Italian OSD texts (thanks to Diego Pierotto).
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg). - Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
@ -9262,3 +9262,5 @@ Video Disk Recorder Revision History
- Replaced the warning regarding the open SVDRP port in the INSTALL file with a remark - Replaced the warning regarding the open SVDRP port in the INSTALL file with a remark
about using svdrphosts.conf to completely disable SVDRP access. about using svdrphosts.conf to completely disable SVDRP access.
- Added a note about the fixed UDP port for SVDRP discovery to vdr.1. - Added a note about the fixed UDP port for SVDRP discovery to vdr.1.
- Fixed updating the Timers menu after turning a local timer on/off with the Red
button.

7
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "menu.h"
@ -1295,7 +1295,8 @@ eOSState cMenuTimers::OnOff(void)
{ {
if (HasSubMenu()) if (HasSubMenu())
return osContinue; return osContinue;
cTimers::GetTimersWrite(timersStateKey); cStateKey StateKey;
cTimers::GetTimersWrite(StateKey);
cTimer *Timer = GetTimer(); cTimer *Timer = GetTimer();
if (Timer) { if (Timer) {
Timer->OnOff(); Timer->OnOff();
@ -1313,7 +1314,7 @@ eOSState cMenuTimers::OnOff(void)
else else
isyslog("%sactivated timer %s", Timer->HasFlags(tfActive) ? "" : "de", *Timer->ToDescr()); isyslog("%sactivated timer %s", Timer->HasFlags(tfActive) ? "" : "de", *Timer->ToDescr());
} }
timersStateKey.Remove(Timer != NULL); StateKey.Remove(Timer != NULL);
return osContinue; return osContinue;
} }