Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.5.1
-
None
-
Windows 10
Description
Drag and drop using URL as mimeData has a serious issue, if you move a file using drag and drop from outside the application into one QListWidget the file is moved into recycle bin, copy doesn't have the issue apparently.
Apparently only happens if an item with the same filename is in the list.
No viable workaround found to avoid this issue.
The only way is to ignore in dragMoveEvent but then it's not possible to handle the case of drop of the same file.
EDIT: I investigate the issue but apparently if the file has the same filename but not on a same URL listed it's ok, so it only moves to recycle bin if you move one file from outside of the application which is the same path of one item listed.
EDIT2: Apparently it only happens when the base class is not called in dropEvent and the URL is already listed in the list.