[nautilus] nautilus-window: Initialize NautilusDragSelectionItem 'file' member
- From: Nelson Benítez León <nbenitez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-window: Initialize NautilusDragSelectionItem 'file' member
- Date: Wed, 23 Oct 2013 19:25:40 +0000 (UTC)
commit 7d642d59d502289df4c967780d11596bcb409a18
Author: Nelson Benitez Leon <nbenitezl gmail com>
Date: Wed Oct 23 19:43:52 2013 +0200
nautilus-window: Initialize NautilusDragSelectionItem 'file' member
This was probably a slip from commit 916bfc628001b399e53a0d26dac1eeb176734316
The 'file' member was not being initialized, and this caused the
subsequent call to check_same_fs() to receive its dropped_file
parameter as NULL, so returning as not being on same fs, and
so choosing GDK_ACTION_COPY instead of GDK_ACTION_MOVE.
Fixes bug 710198
src/nautilus-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f57beb9..9031360 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -595,6 +595,7 @@ build_selection_list_from_gfile_list (GList *gfile_list)
item = nautilus_drag_selection_item_new ();
item->uri = g_file_get_uri (file);
+ item->file = nautilus_file_get_existing (file);
item->got_icon_position = FALSE;
result = g_list_prepend (result, item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]