Created a report here:
https://bugreports.qt.io/browse/QTBUG-62039
On 7/19/2017 12:28 PM, Alexander Dyagilev wrote:
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.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest