diff options
author | Ondrej Holy <oholy@redhat.com> | 2020-12-07 09:40:24 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-12-07 09:49:32 +0100 |
commit | 81bb725f1d2a8460a30170e419f59a75e42e71db (patch) | |
tree | ba858da20c9a9f66114cf8c02517a2c52648e640 /daemon | |
parent | f01af561911390481dff4e47d4d6a4542a8daa32 (diff) | |
download | gvfs-81bb725f1d2a8460a30170e419f59a75e42e71db.tar.gz |
smb: Set fast content type independently of other attributes
The G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE attribute is currently
set only if the G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE or some other
attributes are requested. Thus it is not set when the fast content type
attribute is requested separately. Let's set the attribute independently
to fix this issue.
Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/529
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendsmb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c index 321e9c2b..b8319c60 100644 --- a/daemon/gvfsbackendsmb.c +++ b/daemon/gvfsbackendsmb.c @@ -1436,6 +1436,8 @@ set_info_from_stat (GVfsBackendSmb *backend, if (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE) || g_file_attribute_matcher_matches (matcher, + G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE) || + g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_ICON) || g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON)) |