Add an indication when filesystem is encrypted.

This commit is contained in:
Andrius Štikonas 2016-05-17 01:25:52 +01:00
parent ac278bb06d
commit 8763fbf2ae
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ static QTreeWidgetItem* createTreeWidgetItem(const Partition& p)
quint32 i = 0;
item->setText(i++, p.deviceNode());
item->setText(i, p.fileSystem().name());
if (p.roles().has(PartitionRole::Luks) && p.fileSystem().name() != p.fileSystem().nameForType(FileSystem::Luks))
item->setText(i, p.fileSystem().name() + QStringLiteral(" [") + p.fileSystem().nameForType(FileSystem::Luks) + QStringLiteral("]")); // FIXME after string freeze
else
item->setText(i, p.fileSystem().name());
item->setIcon(i, createFileSystemColor(p.fileSystem().type(), 14));
i++;