diff --git a/src/plugins/libparted/libpartedbackend.cpp b/src/plugins/libparted/libpartedbackend.cpp index c5f912c..3c1283c 100644 --- a/src/plugins/libparted/libpartedbackend.cpp +++ b/src/plugins/libparted/libpartedbackend.cpp @@ -441,7 +441,10 @@ QList LibPartedBackend::scanDevices(bool excludeReadOnly) } emitScanProgress(devices[i], i * 100 / totalDevices); - result.append(scanDevice(devices[i])); + Device* device = scanDevice(devices[i]); + if(device != nullptr) { + result.append(device); + } } }