diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-15 13:44:55 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-15 13:44:55 +0100 |
commit | cad1a88a7b5826ce2a03f4853a5c204c066a8ec4 (patch) | |
tree | 83ae8c952af7783b8189bfe2d01395b5ccdc8f33 /vdr.c | |
parent | 197b8c27fa486577ea35e9e89d09abd877fd5c70 (diff) | |
download | vdr-cad1a88a7b5826ce2a03f4853a5c204c066a8ec4.tar.gz vdr-cad1a88a7b5826ce2a03f4853a5c204c066a8ec4.tar.bz2 |
The status markers in the "Schedule" menu are now only updated if a submenu is closed in which a timer has been modified
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.237 2006/01/14 10:20:50 kls Exp $ + * $Id: vdr.c 1.238 2006/01/15 13:31:57 kls Exp $ */ #include <getopt.h> @@ -690,9 +690,10 @@ int main(int argc, char *argv[]) if (!Channels.BeingEdited() && !Timers.BeingEdited()) { int modified = Channels.Modified(); static time_t ChannelSaveTimeout = 0; + static int TimerState = 0; // Channels and timers need to be stored in a consistent manner, // therefore if one of them is changed, we save both. - if (modified == CHANNELSMOD_USER || Timers.Modified()) + if (modified == CHANNELSMOD_USER || Timers.Modified(TimerState)) ChannelSaveTimeout = 1; // triggers an immediate save else if (modified && !ChannelSaveTimeout) ChannelSaveTimeout = time(NULL) + CHANNELSAVEDELTA; |