summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-17 11:50:21 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-17 11:50:21 +0200
commit30dfd2e7019b9727ca761440b1ec4fe511a1143a (patch)
tree4585d38742a0202bc5f1973dab63c158369c54c3 /channels.c
parenteb18d4a5b0748c3b5d8408fe025eeff332fd64e7 (diff)
downloadvdr-30dfd2e7019b9727ca761440b1ec4fe511a1143a.tar.gz
vdr-30dfd2e7019b9727ca761440b1ec4fe511a1143a.tar.bz2
Now only saving channels.conf after a modification made by the user
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/channels.c b/channels.c
index 021b6174..ba5fd8c1 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.25 2004/04/03 13:42:06 kls Exp $
+ * $Id: channels.c 1.26 2004/10/17 11:21:39 kls Exp $
*/
#include "channels.h"
@@ -749,7 +749,7 @@ cChannels Channels;
cChannels::cChannels(void)
{
maxNumber = 0;
- modified = false;
+ modified = CHANNELSMOD_NONE;
}
bool cChannels::Load(const char *FileName, bool AllowComments, bool MustExist)
@@ -863,15 +863,15 @@ bool cChannels::SwitchTo(int Number)
return channel && cDevice::PrimaryDevice()->SwitchChannel(channel, true);
}
-void cChannels::SetModified(void)
+void cChannels::SetModified(bool ByUser)
{
- modified = true;
+ modified = ByUser ? CHANNELSMOD_USER : !modified ? CHANNELSMOD_AUTO : modified;
}
-bool cChannels::Modified(void)
+int cChannels::Modified(void)
{
- bool Result = modified;
- modified = false;
+ int Result = modified;
+ modified = CHANNELSMOD_NONE;
return Result;
}