diff options
author | Debarshi Ray <debarshir@gnome.org> | 2015-08-21 16:54:46 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2015-08-25 11:15:09 +0200 |
commit | 05f2f71a825495e13e3ef282098d8450a742bd57 (patch) | |
tree | 1b827634f98742808f9073285f9cc0e0dacdb8dc | |
parent | 89587d5c43a64b430abf9e1d96a392187260ae7c (diff) | |
download | gvfs-05f2f71a825495e13e3ef282098d8450a742bd57.tar.gz |
dav: Mark files as untrashable
Otherwise nautilus will offer the wrong action in its UI.
https://bugzilla.gnome.org/show_bug.cgi?id=753934
-rw-r--r-- | daemon/gvfsbackenddav.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c index 27166a24..37d55bcb 100644 --- a/daemon/gvfsbackenddav.c +++ b/daemon/gvfsbackenddav.c @@ -1022,6 +1022,8 @@ ms_response_to_file_info (MsResponse *response, if (basename && basename[0] == '.') g_file_info_set_is_hidden (info, TRUE); + g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE); + file_type = G_FILE_TYPE_REGULAR; mime_type = NULL; |