[nautilus] sidebar: Don't allow DND on Other Locations
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] sidebar: Don't allow DND on Other Locations
- Date: Sat, 2 Jul 2022 17:27:52 +0000 (UTC)
commit 5606348f30dc4c3b0cd9b4228bf79314fecb3ea6
Author: Corey Berla <corey berla me>
Date: Tue May 17 10:32:01 2022 -0700
sidebar: Don't allow DND on Other Locations
Other Locations isn't a valid drop location so don't show it as
an available drop location.
src/gtk/nautilusgtkplacessidebar.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index 067908ec5..00e7d5f98 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -1495,6 +1495,12 @@ check_valid_drop_target (NautilusGtkPlacesSidebar *sidebar,
return FALSE;
}
+ if (place_type == NAUTILUS_GTK_PLACES_OTHER_LOCATIONS)
+ {
+ g_free (uri);
+ return FALSE;
+ }
+
if (place_type == NAUTILUS_GTK_PLACES_DROP_FEEDBACK)
{
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]