Task
- The ::remove method only needs to set ::recalc_urgency if the attribute was actually removed.
This commit is contained in:
@@ -320,10 +320,11 @@ void Task::remove (const std::string& name)
|
||||
{
|
||||
Task::iterator it;
|
||||
if ((it = this->find (name)) != this->end ())
|
||||
{
|
||||
this->erase (it);
|
||||
|
||||
recalc_urgency = true;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task::status Task::getStatus () const
|
||||
|
||||
Reference in New Issue
Block a user