[Interest] QStorageInfo bug?
Alexander Dyagilev
alervdvcw at gmail.com
Wed Jul 19 11:40:59 CEST 2017
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.
>
More information about the Interest
mailing list