diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2015-05-26 12:10:51 +0300 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@theqtcompany.com> | 2015-06-11 16:13:49 +0000 |
commit | 9a029c9de409976b8983fce81ae2029e010cb5f7 (patch) | |
tree | f2b0a4686dd4d1df199bf8e2fd9030c34610e104 /src/corelib/plugin | |
parent | 827e195f17599446d27124ef74a131277fb143c7 (diff) |
Fix sizes QStorageInfo returns for invalid drives
Zero is a legitimate size to be returned by bytesFree/bytesAvailable
functions, so change those functions to return some 'invalid' size
in case of an invalid drive.
This is also consistent with the original version from the Qt Systems
framework.
[ChangeLog][QtCore][QStorageInfo] Fixed sizes returned for invalid drives.
Task-number: QTBUG-45724
Change-Id: I312fba521fdf8d52d7a0ac0e46cacca625775e80
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin')
0 files changed, 0 insertions, 0 deletions