- Fixed #555 that caused a segfault when 'log' was used with a project,
  because the onProjectChange code assumes the files are still open, and
  they were not.  Checked all other commands for similar problem.
- Added Itay Perl to the AUTHORS file.
- Added unit test.
This commit is contained in:
Paul Beckingham
2010-11-20 09:48:19 -05:00
parent d3303f6a98
commit 94480c23d2
4 changed files with 64 additions and 1 deletions

View File

@@ -195,12 +195,12 @@ int handleLog (std::string& outs)
context.tdb.lock (context.config.getBoolean ("locking"));
context.tdb.add (context.task);
context.tdb.commit ();
context.tdb.unlock ();
if (context.config.getBoolean ("echo.command"))
out << "Logged task.\n";
context.footnote (onProjectChange (context.task));
context.tdb.unlock ();
outs = out.str ();
context.hooks.trigger ("post-log-command");