Simplify task construction
This commit is contained in:
committed by
Tomas Babej
parent
44bcd58051
commit
09e2cb46d6
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user