summaryrefslogtreecommitdiff
path: root/src/SearchFilter.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-05-21 19:43:54 +0200
committerJörg Frings-Fürst <debian@jff.email>2022-05-21 19:43:54 +0200
commit9e0516824a0f79514aca5d6dbb1aa21cd247ba05 (patch)
tree9764868c78e104cc18bb6c59f6a8a8a952b30d28 /src/SearchFilter.vala
parent4c548cd33f0614e666d9049e41b4f129629cf182 (diff)
New upstream version 0.30.16upstream/0.30.16
Diffstat (limited to 'src/SearchFilter.vala')
-rw-r--r--src/SearchFilter.vala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index bad6a73..ad8b7ec 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -223,9 +223,7 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
Gee.List<Tag>? tags = Tag.global.fetch_for_source(source);
int tags_size = (tags != null) ? tags.size : 0;
-#if ENABLE_FACES
Gee.List<Face>? faces = Face.global.fetch_for_source(source);
-#endif
foreach (unowned string word in get_search_filter_words()) {
if (media_keywords != null && media_keywords.contains(word))
@@ -249,7 +247,6 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
continue;
}
-#if ENABLE_FACES
if (faces != null) {
bool found = false;
foreach (Face f in faces) {
@@ -264,7 +261,7 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter {
if (found)
continue;
}
-#endif
+
// failed all tests (this even works if none of the Indexables have strings,
// as they fail the implicit AND test)
return false;