From fff94956f4fda33468b65ad535da202e387ae545 Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 16 Oct 2012 22:51:01 +0200 Subject: [PATCH] Fixed LocalSearch.addAllowedFolder() We need to use the node returned by add() as new root node. --- src/com/fsck/k9/search/LocalSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/search/LocalSearch.java b/src/com/fsck/k9/search/LocalSearch.java index 28973482d..72ec45578 100644 --- a/src/com/fsck/k9/search/LocalSearch.java +++ b/src/com/fsck/k9/search/LocalSearch.java @@ -261,7 +261,7 @@ public class LocalSearch implements SearchSpecification { * - do and on root of it & rest of search * - do or between folder nodes */ - and(new SearchCondition(SEARCHFIELD.FOLDER, ATTRIBUTE.EQUALS, name)); + mConditions = and(new SearchCondition(SEARCHFIELD.FOLDER, ATTRIBUTE.EQUALS, name)); } /*