Use fileSystem().type() to avoid string comparison.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1325825
This commit is contained in:
Andrius Štikonas 2012-11-21 18:38:41 +00:00
parent 39dc9c5c46
commit c93da7c1ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);