diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 137c68b28..263b056f2 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -839,6 +839,9 @@ void TDB2::revert () // - erase from completed // - if in backlog, erase, else cannot undo + Task old = Task (prior); + Context::getContext ().hooks.onModify (Task (current), old); + // Modify other data files accordingly. std::vector p = pending.get_lines (); revert_pending (p, uuid, prior);