From 8763fbf2ae089b9594433f15c7c1c9a011930235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 17 May 2016 01:25:52 +0100 Subject: [PATCH] Add an indication when filesystem is encrypted. --- src/gui/partitionmanagerwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/partitionmanagerwidget.cpp b/src/gui/partitionmanagerwidget.cpp index a219831..663a328 100644 --- a/src/gui/partitionmanagerwidget.cpp +++ b/src/gui/partitionmanagerwidget.cpp @@ -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++;