summaryrefslogtreecommitdiff
path: root/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'timer.c')
-rw-r--r--timer.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/timer.c b/timer.c
index c55e4ab..6f20e48 100644
--- a/timer.c
+++ b/timer.c
@@ -709,11 +709,6 @@ int cUpdate::updateTimerTable()
int insert = yes;
int timerId = getTimerIdOf(t);
- // update only assumed timers
-
- if (!timerDb->getValue("ACTION")->isEmpty() && !timerDb->hasCharValue("ACTION", taAssumed))
- continue;
-
// no timer id or not in table -> handle as insert!
timerDb->clear();
@@ -727,6 +722,14 @@ int cUpdate::updateTimerTable()
timerDb->clearChanged();
}
+ // update only assumed timers
+
+ if (!insert)
+ {
+ if (!timerDb->getValue("ACTION")->isEmpty() && !timerDb->hasCharValue("ACTION", taAssumed))
+ continue;
+ }
+
updateRowByTimer(timerDb->getRow(), t);
if (insert)