From cc96e65787a12cd2e93b69646aaf6b89c7d0ed52 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Wed, 25 Sep 2024 18:01:54 -0500 Subject: [PATCH] [partition] Always update EncryptWidget's m_state when updateState is called --- src/modules/partition/gui/EncryptWidget.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/modules/partition/gui/EncryptWidget.cpp b/src/modules/partition/gui/EncryptWidget.cpp index ea0f57b29..93fc852ba 100644 --- a/src/modules/partition/gui/EncryptWidget.cpp +++ b/src/modules/partition/gui/EncryptWidget.cpp @@ -184,13 +184,10 @@ EncryptWidget::updateState( const bool notify ) Encryption newState = state(); - if ( newState != m_state ) + m_state = newState; + if ( notify ) { - m_state = newState; - if ( notify ) - { - Q_EMIT stateChanged( m_state ); - } + Q_EMIT stateChanged( m_state ); } }