From aa3cf1b48ce4735d980fa5616dfacab458ecefe2 Mon Sep 17 00:00:00 2001 From: kiramt Date: Tue, 11 Oct 2016 12:01:23 +0100 Subject: [PATCH] JAL-1552 added acceptDrop call before getTransferable to avoid error with Java native dnd --- src/jalview/gui/Desktop.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index f99af34..1d76f27 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -941,6 +941,9 @@ public class Desktop extends jalview.jbgui.GDesktop implements public void drop(DropTargetDropEvent evt) { boolean success = true; + // JAL-1552 - acceptDrop required before getTransferable call for + // Java's Transferable for native dnd + evt.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); Transferable t = evt.getTransferable(); java.util.List files = new ArrayList(); java.util.List protocols = new ArrayList(); -- 1.7.10.2