Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
-
e79979ba40992d5ae8e12084f91c0d06f158a4df (qt/qtbase/5.15)
Description
The current implementation of this feature on Windows uses preferably the IFileOperation interface, and only falls back to the SHFileOperation shell API if IFileOperation is not available at build time. SHFileOperation does not provide us with information about the location of the file in the trash after the move.
On Windows 7, the implementation of IFileOperation appears to ignore the operation flags that specify that no UI should be shown, so it shows confirmation dialogues. This breaks the test, which is why it is currently skipped on Windows 7.
Implementing the Windows 7 code path to use SHFileOperation even if IFileOperation is available would probably be the better compromise.