diff options
Diffstat (limited to 'libnautilus-extensions/nautilus-icon-dnd.c')
-rw-r--r-- | libnautilus-extensions/nautilus-icon-dnd.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-icon-dnd.c b/libnautilus-extensions/nautilus-icon-dnd.c index 0b883e3ae..1746a8fc9 100644 --- a/libnautilus-extensions/nautilus-icon-dnd.c +++ b/libnautilus-extensions/nautilus-icon-dnd.c @@ -542,7 +542,15 @@ nautilus_icon_container_selection_items_local (const NautilusIconContainer *cont /* get the URI associated with the container */ container_uri_string = get_container_uri (container); - result = nautilus_drag_items_local (container_uri_string, items); + + if (nautilus_uri_is_trash (container_uri_string)) { + /* Special-case "trash:" because the nautilus_drag_items_local + * would not work for it. + */ + result = nautilus_drag_items_in_trash (items); + } else { + result = nautilus_drag_items_local (container_uri_string, items); + } g_free (container_uri_string); return result; |