Use fileSystem().type() to avoid string comparison.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1325825
This commit is contained in:
parent
39dc9c5c46
commit
c93da7c1ae
|
@ -114,7 +114,7 @@ void InfoPane::showPartition(Qt::DockWidgetArea area, const Partition& p)
|
|||
|
||||
int x = 0;
|
||||
int y = createHeader(p.deviceNode(), cols(area));
|
||||
if (p.fileSystem().name() == "luks")
|
||||
if (p.fileSystem().type() == FileSystem::Luks)
|
||||
{
|
||||
QString deviceNode = p.devicePath() + QString::number(p.number());
|
||||
createLabels(i18nc("@label partition", "File system:"), p.fileSystem().name(), cols(area), x, y);
|
||||
|
|
Loading…
Reference in New Issue