[nautilus/947-impossible-to-star-files-in-subfolders] tracker-utilities: Acknowledge recursive indexing
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/947-impossible-to-star-files-in-subfolders] tracker-utilities: Acknowledge recursive indexing
- Date: Tue, 9 Apr 2019 20:08:11 +0000 (UTC)
commit 5e03665d5dbb8c7df849b3aa6b3e655b67148e83
Author: António Fernandes <antoniof gnome org>
Date: Tue Apr 9 20:04:45 2019 +0100
tracker-utilities: Acknowledge recursive indexing
We report directories listed in the "index-recursive-directories" key
as indexed, but we fail to report their subfolders are indexed.
This causes starring to be disabled in subfolders that are actually
indexed.
So, report directories as indexed if any of their ascendants is listed
in that key.
Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/947
src/nautilus-tracker-utilities.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-tracker-utilities.c b/src/nautilus-tracker-utilities.c
index 2e9af932d..cd6fcfce8 100644
--- a/src/nautilus-tracker-utilities.c
+++ b/src/nautilus-tracker-utilities.c
@@ -102,7 +102,8 @@ nautilus_tracker_directory_is_tracked (GFile *directory)
locations = get_tracker_locations ();
for (l = locations; l != NULL; l = l->next)
{
- if (g_file_equal (directory, G_FILE (l->data)))
+ if (g_file_equal (directory, G_FILE (l->data)) ||
+ g_file_has_prefix (directory, G_FILE (l->data)))
{
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]