Correctly hide passphrase widget.

This commit is contained in:
Teo Mrnjavac 2016-04-21 19:21:34 +02:00
parent f56539a4b0
commit 1e300afbac
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,10 @@ void NewDialog::updateHideAndShow()
if (FS::luks::canEncryptType(FileSystem::typeForName(dialogWidget().comboFileSystem().currentText())))
dialogWidget().checkBoxEncrypt().show();
else
{
dialogWidget().checkBoxEncrypt().hide();
dialogWidget().labelPassphrase().hide();
dialogWidget().editPassphrase().hide();
}
}