diff --git a/src/plugins/libparted/libpartedbackend.cpp b/src/plugins/libparted/libpartedbackend.cpp index 0e15f8b..b6e56f0 100644 --- a/src/plugins/libparted/libpartedbackend.cpp +++ b/src/plugins/libparted/libpartedbackend.cpp @@ -352,7 +352,7 @@ void LibPartedBackend::scanDevicePartitions(PedDevice*, Device& d, PedDisk* pedD // libparted does not handle LUKS partitions QString mountPoint; bool mounted = false; - if (fs->type() == FileSystem::Luks) { + if (type == FileSystem::Luks) { r |= PartitionRole::Luks; FS::luks* luksFs = dynamic_cast(fs); QString mapperNode = FS::luks::mapperName(node);