Commit 4ac80adc authored by Adrien Dorsaz's avatar Adrien Dorsaz Committed by Martyn Russell

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).
parent e476a71a
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment