Get the mapper name, not the whole path.

This commit is contained in:
Teo Mrnjavac 2016-05-05 16:24:09 +02:00
parent db9454d199
commit 43ae4eac80

View File

@ -98,7 +98,7 @@ mapForPartition( Partition* partition, const QString& uuid )
const FS::luks* luksFs = dynamic_cast< const FS::luks* >( &fsRef );
if ( luksFs )
{
map[ "luksMapperName" ] = luksFs->mapperName( partition->partitionPath() );
map[ "luksMapperName" ] = luksFs->mapperName( partition->partitionPath() ).split( "/" ).last();
map[ "luksUuid" ] = getLuksUuid( partition->partitionPath() );
cDebug() << "luksMapperName:" << map[ "luksMapperName" ];
}