summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-15 13:44:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-15 13:44:55 +0100
commitcad1a88a7b5826ce2a03f4853a5c204c066a8ec4 (patch)
tree83ae8c952af7783b8189bfe2d01395b5ccdc8f33 /timers.c
parent197b8c27fa486577ea35e9e89d09abd877fd5c70 (diff)
downloadvdr-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 'timers.c')
-rw-r--r--timers.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/timers.c b/timers.c
index 19672672..a168cc1d 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 1.42 2006/01/14 14:56:11 kls Exp $
+ * $Id: timers.c 1.43 2006/01/15 13:31:11 kls Exp $
*/
#include "timers.h"
@@ -515,7 +515,7 @@ cTimers Timers;
cTimers::cTimers(void)
{
- modified = false;
+ state = 0;
beingEdited = 0;;
lastSetEvents = 0;
}
@@ -574,13 +574,13 @@ cTimer *cTimers::GetNextActiveTimer(void)
void cTimers::SetModified(void)
{
- modified = true;
+ state++;
}
-bool cTimers::Modified(void)
+bool cTimers::Modified(int &State)
{
- bool Result = modified;
- modified = false;
+ bool Result = state != State;
+ State = state;
return Result;
}