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 06521a1b55
commit 24a68b2ad8
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);