summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 23a32eb..96ad230 100644
--- a/vdr-vdrmanager/helpers.cpp
+++ b/vdr-vdrmanager/helpers.cpp
@@ -175,6 +175,7 @@ string cHelpers::SetTimerIntern(string args) {
return "!ERROR\r\n";
}
+ Timers.IncBeingEdited();
if (!number) {
// new timer
Timers.Add(timer);
@@ -183,6 +184,7 @@ string cHelpers::SetTimerIntern(string args) {
delete timer;
cTimer * oldTimer = Timers.Get(number);
if (!oldTimer) {
+ Timers.DecBeingEdited();
return "!ERROR\r\n";
}
if (delTimer) {
@@ -191,7 +193,8 @@ string cHelpers::SetTimerIntern(string args) {
oldTimer->Parse(params.c_str());
}
}
- Timers.Save();
+ Timers.SetModified();
+ Timers.DecBeingEdited();
return "START\r\nEND\r\n";
}