* fix DnD behabiour on Mac
This commit is contained in:
parent
6399f63840
commit
95c8496bfb
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue