Internal drag doesn't work with using “public.file-url”

From the central listbox of my app rows can be dragged internally (move emails to another mailbox) or externally to Finder (create eml files from the emails).

With this code I had the internal drag working fine:

Dim theDragItem As New DragItem(Self.TrueWindow, MouseX, MouseY, DragPicture.Width, DragPicture.Height)
theDragItem.rawData(“MAXX”) = DragRecIDs
theDragItem.DragPicture = DragPicture
theDragItem.Drag

If I add another rawData type like this for the external drag then the DragOver for the internal drag listbox doesn’t fire anymore:

Dim theDragItem As New DragItem(Self.TrueWindow, MouseX, MouseY, DragPicture.Width, DragPicture.Height)
theDragItem.rawData(“MAXX”) = DragRecIDs
theDragItem.RawData(“public.file-url”) = “”
theDragItem.DragPicture = DragPicture
theDragItem.FolderItem = SpecialFolder.Temporary.Child(“test” + Format(DateTime.Now.SecondsFrom1970, “#”))
theDragItem.Drag

if theDragItem.Destination <> Nil and theDragItem.Destination isA FolderItem then
RaiseEvent ExportToEml(theRecIDs, Folderitem(theDragItem.Destination).Parent)
end if

Return True

Even adding another AcceptRawDataDrop for the listbox receiving the drag didn’t help:

me.AcceptRawDataDrop(“MAXX”)
Me.AcceptRawDataDrop(“public.file-url”

What do I need to add to get this working?

Example:

drag.xojo_binary_project.zip (6.5 KB)

Sounds like a bug, please file an Issue and we’ll take a look, thanks.

Dang. I was hoping that I did something wrong:

https://tracker.xojo.com/xojoinc/xojo/-/issues/80298