Do not show luks as an option to reformat in partition properties dialog.

This commit is contained in:
Andrius Štikonas 2016-05-18 11:54:24 +01:00
parent 65d80dd405
commit a2c3cfa074
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ void PartPropsDialog::updateHideAndShow()
// when do we show the file system combo box?
const bool showFileSystem =
!partition().roles().has(PartitionRole::Extended) && // not for extended, they have no file system
!partition().roles().has(PartitionRole::Unallocated); // and not for unallocated: no choice there
!partition().roles().has(PartitionRole::Unallocated) && // and not for unallocated: no choice there
!partition().roles().has(PartitionRole::Luks); // and not for luks partitions, we do not allow creating them without inner file system
dialogWidget().showFileSystem(showFileSystem);