- Fixed bug where "task projects" rendered an empty table instead of saying "no projects".

This commit is contained in:
Paul Beckingham 2008-05-27 21:03:27 -04:00
parent a42b8a89c3
commit abc9aa08ec
2 changed files with 29 additions and 23 deletions

View file

@ -4,11 +4,11 @@
1.0.0 (?)
- New movie made, uploaded
- Bug: assertion fails on mobile for t v
- Bug: configure.ac does not properly determine ncurses availability
+ Bug: configure.ac does not properly determine ncurses availability
- Bug: when run without arguments, task dumps core on Solaris 10
- Bug: Cannot seem to use the percent character in a task description
- Bug: New installation "task stats" reports newest task 12/31/1969
- Bug: New installation task projects displays header but no data - should short-circuit
+ Bug: New installation task projects displays header but no data - should short-circuit
+ Bug: incorrect color specification in sample .taskrc file
------ reality -----------------------------------

View file

@ -307,6 +307,8 @@ void handleProjects (const TDB& tdb, T& task, Config& conf)
unique[task.getAttribute ("project")] += 1;
}
if (unique.size ())
{
// Render a list of project names from the map.
Table table;
table.addColumn ("Project");
@ -331,6 +333,10 @@ void handleProjects (const TDB& tdb, T& task, Config& conf)
<< (unique.size () == 1 ? " project" : " projects")
<< std::endl;
}
else
std::cout << "No projects."
<< std::endl;
}
////////////////////////////////////////////////////////////////////////////////
void handleTags (const TDB& tdb, T& task, Config& conf)