1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

When listing devicekit devices, include drives that only contain a single partition (with no partition table).

Fixes issue 1508
This commit is contained in:
Patrick Stewart 2012-06-04 20:43:55 +01:00 committed by David Sansome
parent 704c87b267
commit fd35ce8b5d

View File

@ -154,12 +154,11 @@ DeviceKitLister::DeviceData DeviceKitLister::ReadDeviceData(
return ret;
}
// Don't do anything with internal drives, hidden drives, or things that
// aren't partitions
// Don't do anything with internal drives, hidden drives, or partition tables
if (device.deviceIsSystemInternal() ||
device.devicePresentationHide() ||
device.deviceMountPaths().isEmpty() ||
!device.deviceIsPartition()) {
device.deviceIsPartitionTable()) {
return ret;
}