From ffd6465661fee267dd8f6eb0bd9f81069e31101b Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 28 Feb 2015 00:34:39 +0100 Subject: [PATCH] CmdProjects: Enforce garbage collector --- ChangeLog | 2 ++ src/commands/CmdProjects.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index ae3d8b1de..06cd8fa42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2.4.2 () - +- TW-1450 Projects command should trigger running garbage collector (thanks to + Tomas Babej). - TW-1535 move default listing-break from list to ls (thanks to David Patrick). - TW-1545 cc1plus: error: unrecognized command line option '-std=c++11' (thanks to Petteri). diff --git a/src/commands/CmdProjects.cpp b/src/commands/CmdProjects.cpp index 048ca701b..2edfdf0d6 100644 --- a/src/commands/CmdProjects.cpp +++ b/src/commands/CmdProjects.cpp @@ -53,6 +53,9 @@ int CmdProjects::execute (std::string& output) { int rc = 0; + // Enforce the garbage collector to show correct task counts + context.tdb2.gc (); + // Get all the tasks. handleRecurrence (); std::vector tasks = context.tdb2.pending.get_tasks ();