[tracker] tracker-needle: fix query model assertion



commit 4ac80adccbae668848dd95ddde66f6a9dd708d1e
Author: Adrien Dorsaz <adrien adorsaz ch>
Date:   Mon Feb 23 17:54:32 2015 +0100

    tracker-needle: fix query model assertion
    
    Match.TAGS_ONLY isn't indirect so this assertion should pass
    (the indirect way is Match.TAGS_ONLY_INDIRECT).

 src/tracker-needle/tracker-query.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-query.vala b/src/tracker-needle/tracker-query.vala
index 475e2fd..0a03e80 100644
--- a/src/tracker-needle/tracker-query.vala
+++ b/src/tracker-needle/tracker-query.vala
@@ -264,7 +264,8 @@ public class Tracker.Query {
                if ((query_type != Type.MUSIC && query_type != Type.DOCUMENTS) &&
                        !(match_type == Match.NONE ||
                          match_type == Match.FTS ||
-                         match_type == Match.TITLES)) {
+                         match_type == Match.TITLES ||
+                         match_type == Match.TAGS_ONLY)) {
                        critical ("You can not use a non-MUSIC or non-DOCUMENTS query (%d) with INDIRECT 
matching (%d)", query_type, match_type);
                        return false;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]