From: jprocter < Date: Thu, 20 Mar 2014 15:53:03 +0000 (+0000) Subject: JAL-1459 ensure we notify the drop handler that we've dealt with the X-Git-Tag: Jalview_2_9~200^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dd3059c62cd80e712c0f6df866d6d69588e5f3eb;p=jalview.git JAL-1459 ensure we notify the drop handler that we've dealt with the drop event --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index f4d1885..fe99469 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -806,6 +806,7 @@ public class Desktop extends jalview.jbgui.GDesktop implements */ public void drop(DropTargetDropEvent evt) { + boolean success=true; Transferable t = evt.getTransferable(); java.util.List files = null; java.util.List protocols = null; @@ -854,6 +855,7 @@ public class Desktop extends jalview.jbgui.GDesktop implements } } catch (Exception e) { + success=false; } if (files != null) @@ -882,8 +884,10 @@ public class Desktop extends jalview.jbgui.GDesktop implements } } catch (Exception ex) { + success=false; } } + evt.dropComplete(success); // need this to ensure input focus is properly transfered to any new windows created } /**