mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task
- The ::remove method only needs to set ::recalc_urgency if the attribute was actually removed.
This commit is contained in:
parent
c54a17089a
commit
75af8d6ca4
1 changed files with 3 additions and 2 deletions
|
@ -320,9 +320,10 @@ void Task::remove (const std::string& name)
|
|||
{
|
||||
Task::iterator it;
|
||||
if ((it = this->find (name)) != this->end ())
|
||||
{
|
||||
this->erase (it);
|
||||
|
||||
recalc_urgency = true;
|
||||
recalc_urgency = true;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue