mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
- 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:
parent
72c7afe1a1
commit
6c7ad2b398
6 changed files with 28 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue