Skip to content
Snippets Groups Projects
Commit 8ff943e5 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Improve check for encryption status.

parent 7a03dc10
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment