Filter: When GC is turned off, disable the query shortcuts, which do not apply.

This commit is contained in:
Paul Beckingham 2015-09-19 07:49:55 -04:00
parent bc81bc478c
commit b4077775c2
2 changed files with 5 additions and 0 deletions

View file

@ -200,6 +200,7 @@
is no longer supported. is no longer supported.
- Correct a false-positive warning when a due date is removed and a wait is - Correct a false-positive warning when a due date is removed and a wait is
added. added.
- When GC is turned off, disable the query shortcuts, which no longer apply.
------ current release --------------------------- ------ current release ---------------------------

View file

@ -234,6 +234,10 @@ bool Filter::hasMiscellaneous ()
// guaranteed to only need data from pending.data. // guaranteed to only need data from pending.data.
bool Filter::pendingOnly () bool Filter::pendingOnly ()
{ {
// When GC is off, there are no shortcuts.
if (! context.config.getBoolean ("gc"))
return false;
// To skip loading completed.data, there should be: // To skip loading completed.data, there should be:
// - 'status' in filter // - 'status' in filter
// - no 'completed' // - no 'completed'