From 0e611eda19512cd5d90c0273ee9a15871a952903 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Jul 2008 17:02:10 -0400 Subject: [PATCH] - Disabled undelete for deleted recurring tasks, because it is too difficult to know what to restore. --- src/task.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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");