summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsmb.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-06 15:53:43 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-02-06 15:53:43 +0000
commit6d9d74af944713854d3e3515b0969dcdc8caa001 (patch)
tree0c814147eaab033d3d7c08402fcae4a285827295 /daemon/gvfsbackendsmb.c
parentd9786a186e1365e88107ccdb4923569a258901a2 (diff)
downloadgvfs-6d9d74af944713854d3e3515b0969dcdc8caa001.tar.gz
Ensure name is set in query_info (#511601) Clean up setting display name
2008-02-06 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: Ensure name is set in query_info (#511601) Clean up setting display name of / svn path=/trunk/; revision=1232
Diffstat (limited to 'daemon/gvfsbackendsmb.c')
-rw-r--r--daemon/gvfsbackendsmb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index e43adb9a..9687cecf 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1144,6 +1144,8 @@ set_info_from_stat (GVfsBackendSmb *backend,
char *content_type;
char *display_name;
+ if (basename)
+ g_file_info_set_name (info, basename);
if (basename != NULL &&
g_file_attribute_matcher_matches (matcher,
@@ -1461,8 +1463,6 @@ do_enumerate (GVfsBackend *backend,
if (stat_res == 0)
{
info = g_file_info_new ();
- g_file_info_set_name (info, dirp->name);
-
set_info_from_stat (op_backend, info, &st, dirp->name, matcher);
files = g_list_prepend (files, info);
}