diff options
author | Corey Berla <corey@berla.me> | 2022-09-01 13:17:07 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-01 21:42:41 +0000 |
commit | a88ad1e3e36bd85bc6139cf8c398fdc79819941f (patch) | |
tree | 7c1290381a8872ab158cec33be272faf55d68491 | |
parent | f8270f7313af82f3f58bad3a5d5d0641ee912c56 (diff) | |
download | nautilus-a88ad1e3e36bd85bc6139cf8c398fdc79819941f.tar.gz |
dnd: Allow dropping to starred directory
-rw-r--r-- | src/gtk/nautilusgtkplacessidebar.c | 6 | ||||
-rw-r--r-- | src/nautilus-dnd.c | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c index 792afea53..f7da8ea75 100644 --- a/src/gtk/nautilusgtkplacessidebar.c +++ b/src/gtk/nautilusgtkplacessidebar.c @@ -1502,12 +1502,6 @@ check_valid_drop_target (NautilusGtkPlacesSidebar *sidebar, "file", &dest_file, NULL); - if (place_type == NAUTILUS_GTK_PLACES_STARRED_LOCATION) - { - g_free (uri); - return FALSE; - } - if (place_type == NAUTILUS_GTK_PLACES_CONNECT_TO_SERVER) { g_free (uri); diff --git a/src/nautilus-dnd.c b/src/nautilus-dnd.c index 7df392037..5d16e4c77 100644 --- a/src/nautilus-dnd.c +++ b/src/nautilus-dnd.c @@ -174,6 +174,10 @@ nautilus_dnd_get_preferred_action (NautilusFile *target_file, { return GDK_ACTION_COPY; } + else if (nautilus_file_is_starred_location (target_file)) + { + return GDK_ACTION_COPY; + } else if (!nautilus_file_is_directory (target_file) || !nautilus_file_can_write (target_file)) { |