Enhancement

- Re-enabled the onProjectChange function, and upgraded it to TDB2.
  Now it does a lot less, which is another way of saying it is faster.
This commit is contained in:
Paul Beckingham 2011-09-09 00:13:08 -04:00
parent c54bb8a42a
commit d37e46cc48
3 changed files with 15 additions and 38 deletions

View file

@ -60,7 +60,7 @@ int CmdAdd::execute (std::string& output)
if (context.verbose ("new-id"))
output = format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
// TODO context.footnote (onProjectChange (task));
context.footnote (onProjectChange (task));
context.tdb2.commit ();
return rc;

View file

@ -66,9 +66,7 @@ int CmdLog::execute (std::string& output)
context.tdb2.add (task);
/*
TODO context.footnote (onProjectChange (task));
*/
context.footnote (onProjectChange (task));
context.tdb2.commit ();
if (context.config.getBoolean ("echo.command"))