From 4ac80adccbae668848dd95ddde66f6a9dd708d1e Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Mon, 23 Feb 2015 17:54:32 +0100 Subject: 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 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tracker-needle/tracker-query.vala b/src/tracker-needle/tracker-query.vala index 475e2fd1d..0a03e800c 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; } -- cgit v1.2.1