- Added error checking for "recur" without "due"

- Added error checking for "until" without "recur"
- Added status setting for "task add" regarding T::recurring
This commit is contained in:
Paul Beckingham 2008-07-05 02:02:10 -04:00
parent 72c7afe1a1
commit 6c7ad2b398
6 changed files with 28 additions and 6 deletions

View file

@ -239,7 +239,6 @@ bool TDB::completeT (const T& t) const
bool TDB::addT (const T& t) const
{
T task (t);
std::vector <std::string> tags;
task.getTags (tags);
@ -254,7 +253,8 @@ bool TDB::addT (const T& t) const
}
}
if (task.getStatus () == T::pending)
if (task.getStatus () == T::pending ||
task.getStatus () == T::recurring)
return writePending (task);
return writeCompleted (task);