From 6dff1f36bfd0f064ae93213ddd407928815c9571 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 8 Sep 2014 00:01:54 -0400 Subject: [PATCH] Hooks - Added notes regarding the use of 'first', which may be problematic. --- src/Hooks.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Hooks.cpp b/src/Hooks.cpp index bea5c3ae0..d3b10216b 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -104,6 +104,7 @@ void Hooks::onLaunch () { if (line->length () && (*line)[0] == '{') { + // Only 'add' is possible. Task newTask (*line); context.tdb2.add (newTask); } @@ -210,6 +211,7 @@ void Hooks::onAdd (Task& after) { Task newTask (*line); + // TODO Not sure if this first/!first thing is good. if (first) { after = newTask; @@ -281,6 +283,7 @@ void Hooks::onModify (const Task& before, Task& after) { Task newTask (*line); + // TODO Not sure if this first/!first thing is good. if (first) { after = newTask;