Improve check for encryption status.
This commit is contained in:
parent
7a03dc102d
commit
8ff943e5b5
@ -200,7 +200,7 @@ CreatePartitionDialog::createPartition()
|
||||
|
||||
Partition* partition = nullptr;
|
||||
QString luksPassphrase = m_ui->encryptWidget->passphrase();
|
||||
if ( m_ui->encryptWidget->isVisible() &&
|
||||
if ( m_ui->encryptWidget->state() == EncryptWidget::EncryptionConfirmed &&
|
||||
!luksPassphrase.isEmpty() )
|
||||
{
|
||||
partition = KPMHelpers::createNewEncryptedPartition(
|
||||
|
Loading…
Reference in New Issue
Block a user