summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdr-vdrmanager/helpers.cpp')
-rw-r--r--vdr-vdrmanager/helpers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/vdr-vdrmanager/helpers.cpp b/vdr-vdrmanager/helpers.cpp
index b015b88..1095507 100644
--- a/vdr-vdrmanager/helpers.cpp
+++ b/vdr-vdrmanager/helpers.cpp
@@ -192,6 +192,7 @@ string cHelpers::SetTimerIntern(string args) {
return "!ERROR\r\n";
}
+ Timers.IncBeingEdited();
if (!number) {
// new timer
Timers.Add(timer);
@@ -200,6 +201,7 @@ string cHelpers::SetTimerIntern(string args) {
delete timer;
cTimer * oldTimer = Timers.Get(number);
if (!oldTimer) {
+ Timers.DecBeingEdited();
return "!ERROR\r\n";
}
if (delTimer) {
@@ -208,7 +210,8 @@ string cHelpers::SetTimerIntern(string args) {
oldTimer->Parse(params.c_str());
}
}
- Timers.Save();
+ Timers.SetModified();
+ Timers.DecBeingEdited();
return "START\r\nEND\r\n";
}