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

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

XMLWordPrintable

    • Windows
    • e0b9beb63dead017b6849ebcaa91c04a57f955c6 (qt/qtbase/5.14)

      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

        1. qtbug80965.zip
          0.8 kB
          Miika Pernu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes