Commit aeef1e05 authored by Simon Persson's avatar Simon Persson

Add support for encrypted volumes to the USB device detection.

parent af8c7064
......@@ -123,7 +123,9 @@ void DriveSelection::delayedDeviceAdded() {
QList<Solid::Device> lVolumeDeviceList;
foreach(Solid::Device lVolumeDevice, lDeviceList) {
Solid::StorageVolume *lVolume = lVolumeDevice.as<Solid::StorageVolume>();
if (lVolume && lVolume->usage() == Solid::StorageVolume::FileSystem && !lVolume->isIgnored()) {
if(lVolume && !lVolume->isIgnored() && (
lVolume->usage() == Solid::StorageVolume::FileSystem ||
lVolume->usage() == Solid::StorageVolume::Encrypted)) {
lVolumeDeviceList.append(lVolumeDevice);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment