diff --git a/ChangeLog b/ChangeLog index 3d7b8369b..6825b4ad5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,7 +7,7 @@ + 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 stats" reports newest task 12/31/1969 + Bug: New installation task projects displays header but no data - should short-circuit + Bug: incorrect color specification in sample .taskrc file diff --git a/configure.ac b/configure.ac index 72faa983f..d37590d47 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT(task, 0.9.9, bugs@beckingham.net) +AC_INIT(task, 1.0.0, bugs@beckingham.net) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/task.cpp]) AC_CONFIG_HEADER([auto.h]) diff --git a/src/task.cpp b/src/task.cpp index 3f1eeb31e..f329f091f 100644 --- a/src/task.cpp +++ b/src/task.cpp @@ -2200,11 +2200,14 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf) << "Deleted " << deletedT << std::endl << "Total " << totalT << std::endl; - Date e (earliest); - std::cout << "Oldest task " << e.toString () << std::endl; - Date l (latest); - std::cout << "Newest task " << l.toString () << std::endl; - std::cout << "Task used for " << formatSeconds (latest - earliest) << std::endl; + if (tasks.size ()) + { + Date e (earliest); + std::cout << "Oldest task " << e.toString () << std::endl; + Date l (latest); + std::cout << "Newest task " << l.toString () << std::endl; + std::cout << "Task used for " << formatSeconds (latest - earliest) << std::endl; + } if (totalT) std::cout << "Task added every " << formatSeconds ((latest - earliest) / totalT) << std::endl;