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

QStorageInfo points to incorrect storage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.6.0, 5.9.1
    • Core: Other
    • None

      1. External drive. Some file on it.

      QStorageInfo(pathToFile).rootPath() returns a valid path. I save it for the further usage (SRP).

      2. Disconnect the drive, restart app.

      QStorageInfo(SRP).isValid() returns false. (as expected)

      3. Connect the drive.

      QStorageInfo(SRP).isValid() starts returning true, but it's rootPath() method starts returning "/" instead of SRP value!

      I.e. it starts pointing to a system root drive! After the few seconds QStorageInfo(SRP) starts pointing again to that external drive because its rootPath() method starts returning SRP value.

      Looks like a bug.

      OS: Mac OS X El Capitan 10.11.6

      Works fine on Windows 10.

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

            thiago Thiago Macieira
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes