diff options
author | git-vdr <herrlado@gmail.com> | 2011-10-04 01:57:16 +0200 |
---|---|---|
committer | git-vdr <herrlado@gmail.com> | 2011-10-04 01:57:16 +0200 |
commit | 2ef69b9617c946c90e11eeb73a7cd8b8f4117f8e (patch) | |
tree | 1eba00129b9dbd837bf6abcac09404fb916d64cf /vdr-vdrmanager/helpers.cpp | |
parent | e934c6fcbd9ef3d832b79be24241b829fe928fcc (diff) | |
parent | 5bbc68c66ef3ed02b3b1f9f98d0fc61448a79b43 (diff) | |
download | vdr-manager-2ef69b9617c946c90e11eeb73a7cd8b8f4117f8e.tar.gz vdr-manager-2ef69b9617c946c90e11eeb73a7cd8b8f4117f8e.tar.bz2 |
Merge branch 'master' of ssh://projects.vdr-developer.org/vdr-manager
Diffstat (limited to 'vdr-vdrmanager/helpers.cpp')
-rw-r--r-- | vdr-vdrmanager/helpers.cpp | 5 |
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"; } |