From 8ff943e5b5545c708754c9e4caa59049b32a21a9 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 10 Jun 2016 17:52:54 +0200 Subject: [PATCH] Improve check for encryption status. --- src/modules/partition/gui/CreatePartitionDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/partition/gui/CreatePartitionDialog.cpp b/src/modules/partition/gui/CreatePartitionDialog.cpp index efa46c994..994e60010 100644 --- a/src/modules/partition/gui/CreatePartitionDialog.cpp +++ b/src/modules/partition/gui/CreatePartitionDialog.cpp @@ -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(