diff options
author | Max <max@privatevoid.net> | 2020-08-15 20:58:51 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-08-19 11:37:26 +0000 |
commit | 00503c884bda4857929c4e1b194be3f834bc7ba0 (patch) | |
tree | 81cd5a16c2f1222b491ab9cf9a21922deb64ac78 | |
parent | bf1ebd2399422d2622aa29b338b50acc5ced664c (diff) | |
download | nautilus-00503c884bda4857929c4e1b194be3f834bc7ba0.tar.gz |
batch-rename-utilities: Use string literal instead of IRI
The batch rename feature supports renaming files by common metadata stored
in Tracker's database. This was previously broken because a filter in the
SPARQL query that intends to limit the file selection to the current
directory was always returning 0 results. Changing the string quote type
from IRI syntax to a regular string literal within that filter call fixes
the problem.
Fixes #1025.
(cherry picked from commit 1a75eeb555af6c7e467b0a46c7db6e71896bf625)
-rw-r--r-- | src/nautilus-batch-rename-utilities.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c index da0f32113..fcc0a32e9 100644 --- a/src/nautilus-batch-rename-utilities.c +++ b/src/nautilus-batch-rename-utilities.c @@ -1075,7 +1075,7 @@ check_metadata_for_selection (NautilusBatchRenameDialog *dialog, parent_uri = nautilus_file_get_parent_uri (NAUTILUS_FILE (selection->data)); g_string_append_printf (query, - "FILTER(tracker:uri-is-parent(<%s>, ?url)) ", + "FILTER(tracker:uri-is-parent(\"%s\", ?url)) ", parent_uri); for (l = selection; l != NULL; l = l->next) |