diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 99a50c017..96e7793c9 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -1031,9 +1031,10 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice ) if ( m_enableEncryptionWidget ) { m_encryptWidget->show(); - if ( m_config->preCheckEncryption() ) + if ( m_config->preCheckEncryption() && ! m_preCheckActivated ) { m_encryptWidget->setEncryptionCheckbox( true ); + m_preCheckActivated = true; } } m_previewBeforeLabel->setText( tr( "Current:", "@label" ) ); @@ -1090,9 +1091,10 @@ ChoicePage::updateActionChoicePreview( InstallChoice choice ) if ( shouldShowEncryptWidget( choice ) ) { m_encryptWidget->show(); - if ( m_config->preCheckEncryption() ) + if ( m_config->preCheckEncryption() && ! m_preCheckActivated ) { m_encryptWidget->setEncryptionCheckbox( true ); + m_preCheckActivated = true; } } m_previewBeforeLabel->setText( tr( "Current:", "@label" ) ); diff --git a/src/modules/partition/gui/ChoicePage.h b/src/modules/partition/gui/ChoicePage.h index 1917ef049..6a777e20d 100644 --- a/src/modules/partition/gui/ChoicePage.h +++ b/src/modules/partition/gui/ChoicePage.h @@ -173,6 +173,7 @@ private: QString m_osproberOneEntryName; bool m_enableEncryptionWidget = false; + bool m_preCheckActivated = false; QMutex m_coreMutex; };