* fix DnD behabiour on Mac

This commit is contained in:
Reinhard Pointner 2014-07-28 19:20:42 +00:00
parent 6399f63840
commit 95c8496bfb
1 changed files with 1 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class FileTransferable implements Transferable {
if (transferable instanceof List) {
return sortByUniquePath((List<File>) transferable); // FORCE NATURAL FILE ORDER
} else {
return new ArrayList<File>();
return null; // on some platforms transferable data will not be available until the drop has been accepted
}
}
@ -148,5 +148,4 @@ public class FileTransferable implements Transferable {
// cannot get files from transferable
throw new UnsupportedFlavorException(null);
}
}