summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-10-08 18:02:45 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-10-08 18:02:45 +0200
commit45a5c5a40e32960e82d208f9885405213cf67ddb (patch)
tree023c7b7945693ba13d5f1b7bf1490148a4a5388e
parent9395369c63e1d740e689cdb6ce78c4594a1f2e2a (diff)
downloadnautilus-45a5c5a40e32960e82d208f9885405213cf67ddb.tar.gz
file: default to not being able to trash
We were using as default that we can trash files, and after we only set the if it is possible to trash or not if the filesystem reports that has the info. In most of schemes that the trash is not supported, the filesystem actually don't have that info, making can_trash true and providing the option on nautilus context menu, which does nothing. Default to not being able to trash to avoid this situation.
-rw-r--r--libnautilus-private/nautilus-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 7b2f91c19..57e2dd51b 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -2232,8 +2232,8 @@ update_info_internal (NautilusFile *file,
can_write = TRUE;
can_execute = TRUE;
can_delete = TRUE;
- can_trash = TRUE;
can_rename = TRUE;
+ can_trash = FALSE;
can_mount = FALSE;
can_unmount = FALSE;
can_eject = FALSE;