- Disabled undelete for deleted recurring tasks, because it is too difficult to know what to restore.

This commit is contained in:
Paul Beckingham
2008-07-06 17:02:10 -04:00
parent 17152d8a46
commit 0e611eda19

View File

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