TW #1973: Don't nag when no tasks are READY

- Thanks to Martin F. Krafft
This commit is contained in:
Paul Beckingham 2018-03-18 11:09:34 -04:00
parent f37e98765b
commit d312775f99
4 changed files with 36 additions and 15 deletions

View file

@ -47,8 +47,9 @@ bool nag (Task& task)
auto pending = Context::getContext ().tdb2.pending.get_tasks ();
for (auto& t : pending)
{
if ((t.getStatus () == Task::pending ||
if ((t.getStatus () == Task::pending ||
t.getStatus () == Task::waiting) &&
t.hasTag ("READY") &&
t.urgency () > task.urgency ())
{
Context::getContext ().footnote (msg);