From afcd362f674ff0589a72d6f36a23a27047d46a40 Mon Sep 17 00:00:00 2001 From: Owen Clarke Date: Thu, 5 Jan 2012 17:43:29 -0500 Subject: [PATCH] + Fixed problem with duplicate 'project changed' messages. Signed-off-by: Paul Beckingham --- ChangeLog | 2 ++ src/helpers.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index e589d9243..61e3accf6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -232,6 +232,8 @@ Boeckel). + Fixed problem with DOM-checking the 'limit' pseudo-attribute (thanks to Barton Meeks). + + Fixed problem with duplicate 'project changed' messages (thanks to Owen + Clarke). ------ old releases ------------------------------ diff --git a/src/helpers.cpp b/src/helpers.cpp index ae74040f4..4fc7d345d 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -164,6 +164,9 @@ std::string onProjectChange (Task& task, bool scope /* = true */) /////////////////////////////////////////////////////////////////////////////// std::string onProjectChange (Task& task1, Task& task2) { + if (task1.get ("project") == task2.get ("project")) + return onProjectChange (task1); + std::string messages = onProjectChange (task1); messages += onProjectChange (task2);