summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-31 10:22:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-31 10:22:32 +0100
commit5e731865a6e85e234b6a8daed9c671acaa21e6c1 (patch)
tree596262807dca06e007ae9673c6f3f4ae18a2066e /svdrp.c
parent4f67ade2dcac00d3807df19f18601ee2eb267818 (diff)
downloadvdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.gz
vdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.bz2
Making sure that timers and channels are only saved together
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/svdrp.c b/svdrp.c
index 788b1682..eec6869c 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.64 2004/10/17 10:28:47 kls Exp $
+ * $Id: svdrp.c 1.65 2004/10/31 10:09:53 kls Exp $
*/
#include "svdrp.h"
@@ -529,7 +529,7 @@ void cSVDRP::CmdDELT(const char *Option)
if (timer) {
if (!timer->Recording()) {
Timers.Del(timer);
- Timers.Save();
+ Timers.SetModified();
isyslog("timer %s deleted", Option);
Reply(250, "Timer \"%s\" deleted", Option);
}
@@ -915,7 +915,7 @@ void cSVDRP::CmdMODT(const char *Option)
return;
}
*timer = t;
- Timers.Save();
+ Timers.SetModified();
isyslog("timer %d modified (%s)", timer->Index() + 1, timer->HasFlags(tfActive) ? "active" : "inactive");
Reply(250, "%d %s", timer->Index() + 1, timer->ToText());
}
@@ -973,7 +973,7 @@ void cSVDRP::CmdNEWT(const char *Option)
cTimer *t = Timers.GetTimer(timer);
if (!t) {
Timers.Add(timer);
- Timers.Save();
+ Timers.SetModified();
isyslog("timer %d added", timer->Index() + 1);
Reply(250, "%d %s", timer->Index() + 1, timer->ToText());
return;
@@ -1057,7 +1057,7 @@ void cSVDRP::CmdUPDT(const char *Option)
Timers.Add(timer);
isyslog("timer %d added", timer->Index() + 1);
}
- Timers.Save();
+ Timers.SetModified();
Reply(250, "%d %s", timer->Index() + 1, timer->ToText());
return;
}