diff --git a/src/task.cpp b/src/task.cpp index d68c9f521..fe73dca1a 100644 --- a/src/task.cpp +++ b/src/task.cpp @@ -1073,6 +1073,12 @@ void handleUndelete (const TDB& tdb, T& task, Config& conf) { if (it->getStatus () == T::deleted) { + if (it->getAttribute ("recur") != "") + { + std::cout << "Task does not support 'undelete' for recurring tasks." << std::endl; + return; + } + T restored (*it); restored.setStatus (T::pending); restored.removeAttribute ("end");