Bug Fix - custom reports

- Fixed bug that applied an empty sequence as a filter, which passed
  no tasks.
This commit is contained in:
Paul Beckingham 2009-06-16 01:31:49 -04:00
parent cdd07be331
commit 5691ed0588

View file

@ -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 ();