diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-17 11:50:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-17 11:50:21 +0200 |
commit | 30dfd2e7019b9727ca761440b1ec4fe511a1143a (patch) | |
tree | 4585d38742a0202bc5f1973dab63c158369c54c3 /channels.c | |
parent | eb18d4a5b0748c3b5d8408fe025eeff332fd64e7 (diff) | |
download | vdr-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.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; } |