mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Simplify task construction
This commit is contained in:
parent
44bcd58051
commit
09e2cb46d6
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ void TDB2::revert ()
|
|||
// - erase from completed
|
||||
// - if in backlog, erase, else cannot undo
|
||||
|
||||
Task old = Task ();
|
||||
Task old;
|
||||
if (prior != "")
|
||||
old = Task (prior);
|
||||
Context::getContext ().hooks.onModify (Task (current), old);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue