summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-11-05 19:00:50 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2012-11-05 19:45:56 -0500
commit2e9f73008fab58c633df26feee71b2bfb486493f (patch)
tree64824baf6e55bebda08dfccabd976aec07f3b231
parent36b035762d12944168d4439d0808c5fdb0bcd73f (diff)
downloadnautilus-2e9f73008fab58c633df26feee71b2bfb486493f.tar.gz
view: ensure Trash action is visible when setting sensitivity
We will set the visibility of the action to FALSE when we go to a location that supports deletion but not trashing, but we fail to restore it to TRUE when we go back to a directory that supports trashing. https://bugzilla.gnome.org/show_bug.cgi?id=687619
-rw-r--r--src/nautilus-view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index f51d9166e..f01442aba 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8662,10 +8662,12 @@ real_update_menus (NautilusView *view)
NAUTILUS_ICON_DELETE : NAUTILUS_ICON_TRASH_FULL,
NULL);
/* if the backend supports delete but not trash then don't show trash */
- if (!can_trash_files && can_delete_files)
+ if (!can_trash_files && can_delete_files) {
gtk_action_set_visible (action, FALSE);
- else
+ } else {
+ gtk_action_set_visible (action, TRUE);
gtk_action_set_sensitive (action, can_trash_files);
+ }
action = gtk_action_group_get_action (view->details->dir_action_group,
NAUTILUS_ACTION_DELETE);