- The ::remove method only needs to set ::recalc_urgency if the attribute was
  actually removed.
This commit is contained in:
Paul Beckingham 2014-07-06 00:36:16 -04:00
parent c54a17089a
commit 75af8d6ca4

View file

@ -320,9 +320,10 @@ void Task::remove (const std::string& name)
{ {
Task::iterator it; Task::iterator it;
if ((it = this->find (name)) != this->end ()) if ((it = this->find (name)) != this->end ())
{
this->erase (it); this->erase (it);
recalc_urgency = true;
recalc_urgency = true; }
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////