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

QDir::drives() lists drives that have been ejected (but not yet removed) on Windows

    XMLWordPrintable

Details

    • 69e68218e5082166d5c4ab1903fbacde00418a1c (qrbase/5.12, 30.9.2018, 5.12b1)

    Description

      When a removable drive is removed via Windows Explorer then it can still show up in the QFileSystemModel. To reproduce this with the attached example.

      • Insert a USB drive and then start the example
      • Via Windows Explorer (not the safe remove option in the system tray), right click the USB drive and click eject
      • Note that it is removed from Windows Explorer
      • In the application it is still listed

      QDir::drives() also lists the entry here in this case, so it should be checked that the drive does actually exist

      Attachments

        1. qtbug69029.zip
          2 kB
        2. qtbug69029_log.txt
          3 kB
        3. qtbug69029.tar.gz
          1 kB
        For Gerrit Dashboard: QTBUG-69029
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes