From 5691ed0588c7d4e58fc5ec47dfd056a4d63a9255 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 16 Jun 2009 01:31:49 -0400 Subject: [PATCH] Bug Fix - custom reports - Fixed bug that applied an empty sequence as a filter, which passed no tasks. --- src/custom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom.cpp b/src/custom.cpp index bb56f54f4..85bd1ae29 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -87,11 +87,11 @@ std::string handleCustomReport (const std::string& report) // TODO Include filter from custom report. context.tdb.load (tasks, context.filter); handleRecurrence (tasks); - context.tdb.commit (); context.tdb.unlock (); // Filter sequence. - context.filter.applySequence (tasks, context.sequence); + if (context.sequence.size ()) + context.filter.applySequence (tasks, context.sequence); // Initialize colorization for subsequent auto colorization. initializeColorRules ();