Merge branch 'Release_2_8_1_Branch_i18n' into Release_2_8_1_Branch
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 4 Apr 2014 13:36:57 +0000 (14:36 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 4 Apr 2014 13:36:57 +0000 (14:36 +0100)
src/jalview/gui/Desktop.java

index 6715537..a56ec28 100644 (file)
@@ -807,6 +807,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;
@@ -855,6 +856,7 @@ public class Desktop extends jalview.jbgui.GDesktop implements
       }
     } catch (Exception e)
     {
+      success=false;
     }
 
     if (files != null)
@@ -883,8 +885,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 
   }
 
   /**