From 84d7fca53faf3e6ca0d62c248ad10ce5639db0bc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Sep 2014 14:41:49 -0400 Subject: [PATCH] Feedback - Inverted the test, and improved it. --- src/feedback.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/feedback.cpp b/src/feedback.cpp index 36c883ced..2f159a2ab 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -475,10 +475,10 @@ std::string onProjectChange (Task& task, bool scope /* = true */) msg << format (STRING_HELPER_PROJECT_COMPL, project, percentage) << " "; - if (count_pending > 1) - msg << format (STRING_HELPER_PROJECT_REM, count_pending, count_pending + count_done); - else + if (count_pending == 1 && count_done == 0) msg << format (STRING_HELPER_PROJECT_REM1, count_pending); + else + msg << format (STRING_HELPER_PROJECT_REM, count_pending, count_pending + count_done); } return msg.str ();