From 75af8d6ca46687ca976e98ce743e20e46930ee79 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Jul 2014 00:36:16 -0400 Subject: [PATCH] Task - The ::remove method only needs to set ::recalc_urgency if the attribute was actually removed. --- src/Task.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; + } } ////////////////////////////////////////////////////////////////////////////////