Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47703 Move a file or directory to the trash
  3. QTBUG-81927

Implement Windows 7 version that doesn't show confirmation dialogs

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Done
    • P2: Important
    • 5.15.0 Beta1
    • Core: I/O
    • None
    • Windows
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes