summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-desktop-directory-file.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-04-06 10:37:56 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-04-06 10:37:56 +0200
commit9fdab86825e54ede870b0e912882d2d438faa8fe (patch)
tree24148796301853cdc77d5d451a8b2422b3163043 /libnautilus-private/nautilus-desktop-directory-file.c
parentd31c96c4e393e0e4f251c097138d60ce9b4b7430 (diff)
downloadnautilus-9fdab86825e54ede870b0e912882d2d438faa8fe.tar.gz
nautilus-dnd: request file system info if not available
We were assuming we had in cache the files used for dnd, but with the desktop split that's not longer the case. What can happens is that we cannot discern whether the drop action should be a copy or a move, since Nautilus always performs a move if the file system is the same as the dragged files. To fix it, in a best effort mode, we will request to update the files information if it's not available. In future times it will be requested, and if the files are not freed, we will have the file system information available in order to decide a more appropriate drop action.
Diffstat (limited to 'libnautilus-private/nautilus-desktop-directory-file.c')
-rw-r--r--libnautilus-private/nautilus-desktop-directory-file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-desktop-directory-file.c b/libnautilus-private/nautilus-desktop-directory-file.c
index e990de218..2a43bdf98 100644
--- a/libnautilus-private/nautilus-desktop-directory-file.c
+++ b/libnautilus-private/nautilus-desktop-directory-file.c
@@ -107,7 +107,8 @@ get_delegated_attributes_mask (void)
{
return NAUTILUS_FILE_ATTRIBUTE_DEEP_COUNTS |
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT |
- NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_MIME_TYPES;
+ NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_MIME_TYPES |
+ NAUTILUS_FILE_ATTRIBUTE_INFO;
}
static void