Fix LUKS encryption support for filesystems without support for writing label.

This enables LUKS encryption for Reiser4 and LVM PV.
This commit is contained in:
Andrius Štikonas 2016-04-16 00:28:14 +01:00
parent 13031913f4
commit b3303ee6bf
Signed by: andrius
GPG Key ID: C86115C8091792EC
1 changed files with 5 additions and 7 deletions

View File

@ -210,12 +210,10 @@ void NewDialog::updateHideAndShow()
} else {
dialogWidget().label().setReadOnly(false);
dialogWidget().noSetLabel().setVisible(false);
if (FS::luks::canEncryptType(
FileSystem::typeForName(dialogWidget()
.comboFileSystem()
.currentText())))
dialogWidget().checkBoxEncrypt().show();
else
dialogWidget().checkBoxEncrypt().hide();
}
if (FS::luks::canEncryptType(FileSystem::typeForName(dialogWidget().comboFileSystem().currentText())))
dialogWidget().checkBoxEncrypt().show();
else
dialogWidget().checkBoxEncrypt().hide();
}