Prevent the libparted backend from exposing "null devices"
REVIEW: 129968 BUG: 375394
This commit is contained in:
parent
876a3932fd
commit
427e37a047
|
@ -441,7 +441,10 @@ QList<Device*> LibPartedBackend::scanDevices(bool excludeReadOnly)
|
||||||
}
|
}
|
||||||
|
|
||||||
emitScanProgress(devices[i], i * 100 / totalDevices);
|
emitScanProgress(devices[i], i * 100 / totalDevices);
|
||||||
result.append(scanDevice(devices[i]));
|
Device* device = scanDevice(devices[i]);
|
||||||
|
if(device != nullptr) {
|
||||||
|
result.append(device);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue