Use the detected FS type directly.

This commit is contained in:
Teo Mrnjavac 2016-05-04 18:27:59 +02:00
parent a1026d20be
commit 1cb464c6b0
1 changed files with 1 additions and 1 deletions

View File

@ -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::luks*>(fs);
QString mapperNode = FS::luks::mapperName(node);