Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.6.0, 5.9.1
-
None
Description
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.