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