From 48dff115c2d237e0c94b97a868d81360358c460e Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 13 Sep 2019 15:55:44 +0200 Subject: [PATCH] hook onModify into task undo (Closes: #2213) --- src/TDB2.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);