Simplify task construction

This commit is contained in:
Max Rossmannek
2020-11-21 18:31:44 +01:00
committed by Tomas Babej
parent 44bcd58051
commit 09e2cb46d6

View File

@@ -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);