mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +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
|
// - erase from completed
|
||||||
// - if in backlog, erase, else cannot undo
|
// - if in backlog, erase, else cannot undo
|
||||||
|
|
||||||
Task old = Task ();
|
Task old;
|
||||||
if (prior != "")
|
if (prior != "")
|
||||||
old = Task (prior);
|
old = Task (prior);
|
||||||
Context::getContext ().hooks.onModify (Task (current), old);
|
Context::getContext ().hooks.onModify (Task (current), old);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue