diff options
author | Ondrej Holy <oholy@redhat.com> | 2017-12-07 13:42:45 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2017-12-08 14:06:13 +0100 |
commit | ebc61e107398704b69fb326b9fcece81a3be9e70 (patch) | |
tree | 62eda33ca51ced3e45758fe17a11ba88c5a48885 /daemon/gvfsbackend.c | |
parent | 52faef5d270e71d697c2f8dd7f9c5d1e72012f03 (diff) | |
download | gvfs-ebc61e107398704b69fb326b9fcece81a3be9e70.tar.gz |
backend: Fix querying of thumbnail::failed attribute
The thumbnail::failed would previously only be set if thumbnail::path
was included in the query, so querying for just thumbnail::failed
would return no results. This fixes the behaviour of "gio info -a
thumbnail::failed URI".
https://bugzilla.gnome.org/show_bug.cgi?id=791325
Diffstat (limited to 'daemon/gvfsbackend.c')
-rw-r--r-- | daemon/gvfsbackend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c index 0ba19882..b9096033 100644 --- a/daemon/gvfsbackend.c +++ b/daemon/gvfsbackend.c @@ -583,8 +583,10 @@ g_vfs_backend_add_auto_info (GVfsBackend *backend, } if (uri != NULL && - g_file_attribute_matcher_matches (matcher, - G_FILE_ATTRIBUTE_THUMBNAIL_PATH)) + (g_file_attribute_matcher_matches (matcher, + G_FILE_ATTRIBUTE_THUMBNAIL_PATH) || + g_file_attribute_matcher_matches (matcher, + G_FILE_ATTRIBUTE_THUMBNAILING_FAILED))) get_thumbnail_attributes (uri, info); } |