diff --git a/src/Task.cpp b/src/Task.cpp index b85d6d1a4..33d4527b9 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -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; + } } ////////////////////////////////////////////////////////////////////////////////