diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-02-24 15:05:07 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-02-24 15:05:07 +0100 |
commit | ebc6dccee3bacb5dfe026514ef14928a6f0779dd (patch) | |
tree | 511e3486d9bd32f72121e96f5ce45600c132811c /menu.c | |
parent | edacac5f91713ff996853c0de665ff3c237eaf8a (diff) | |
download | vdr-ebc6dccee3bacb5dfe026514ef14928a6f0779dd.tar.gz vdr-ebc6dccee3bacb5dfe026514ef14928a6f0779dd.tar.bz2 |
Explicitly setting timer's 'active' field to '1' after user changes
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.67 2001/02/24 14:03:39 kls Exp $ + * $Id: menu.c 1.68 2001/02/24 14:53:40 kls Exp $ */ #include "menu.h" @@ -925,6 +925,8 @@ eOSState cMenuEditTimer::ProcessKey(eKeys Key) strcpy(data.file, Channels.GetChannelNameByNumber(data.channel)); if (timer && memcmp(timer, &data, sizeof(data)) != 0) { *timer = data; + if (timer->active) + timer->active = 1; // allows external programs to mark active timers with values > 1 and recognize if the user has modified them Timers.Save(); isyslog(LOG_INFO, "timer %d modified (%s)", timer->Index() + 1, timer->active ? "active" : "inactive"); } |