Improve check for encryption status.

This commit is contained in:
Teo Mrnjavac 2016-06-10 17:52:54 +02:00
parent 7a03dc102d
commit 8ff943e5b5

View File

@ -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(