Bug 555
- 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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user