Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80965

Calling QFileSystemModel::remove results in QFileSystemWatcher::removePaths: list is empty

    XMLWordPrintable

Details

    • Windows
    • e0b9beb63dead017b6849ebcaa91c04a57f955c6 (qt/qtbase/5.14)

    Description

      Each time deleting a file or a folder using QFileSystemModel::remove on Windows the following warning is printed out: "QFileSystemWatcher::removePaths: list is empty".

      Remove seems to work otherwise as expected despite the warning and the function returns true with the actual file or folder also vanishing from the system.

      Steps to reproduce:

      1. Run the attached project
      2. Click the first button to create a test directory in application dir using QFileSystemModel::mkdir
      3. Click the second button to remove the test directory from the application dir using QFileSystemModel::remove
      4. Observe the application output

      Attachments

        Issue Links

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

          Activity

            People

              dfaure_kdab David Faure
              miikapernu Miika Pernu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes