From 07755e2c56dd1fe7d86bc7878358c5571f04b540 Mon Sep 17 00:00:00 2001 From: Steve Rader Date: Mon, 3 Jan 2011 22:04:10 -0500 Subject: [PATCH] Bug #613 - Missing projects are now consistently reported as "(none)" in the summary chart and the projects command. Signed-off-by: Paul Beckingham --- ChangeLog | 3 +++ src/command.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bcf3f22ff..c6c07634c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,6 +62,9 @@ + Fixed bug #595, where taskwarrior ignored changes to the wait date during the edit command, consequently not changing task status (thanks to Eric Fluger). + + Applied patch to fix bug #613, so that the summary report and the projects + command now consistently show a missing project as "(none)" (thanks to + Steve Rader). ------ old releases ------------------------------ diff --git a/src/command.cpp b/src/command.cpp index dc74a3653..52a16659a 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -298,7 +298,7 @@ int handleProjects (std::string& outs) foreach (i, unique) { int row = table.addRow (); - table.addCell (row, 0, i->first); + table.addCell (row, 0, (i->first == "" ? "(none)" : i->first)); table.addCell (row, 1, i->second); table.addCell (row, 2, none[i->first]); table.addCell (row, 3, low[i->first]);