From bcdedb4fcf4387e317d1eb173de8ff6946e48281 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 12 Feb 2025 14:32:29 +1000 Subject: [PATCH] Fix crash when auth system not available and master password reset attempted --- src/gui/auth/qgsauthmasterpassresetdialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/auth/qgsauthmasterpassresetdialog.cpp b/src/gui/auth/qgsauthmasterpassresetdialog.cpp index acb0856578a..d2747d84831 100644 --- a/src/gui/auth/qgsauthmasterpassresetdialog.cpp +++ b/src/gui/auth/qgsauthmasterpassresetdialog.cpp @@ -46,15 +46,15 @@ QgsMasterPasswordResetDialog::QgsMasterPasswordResetDialog( QWidget *parent ) { chkKeepBackup->hide(); } - } - QString warning = tr( "The authentication store will be re-encrypted using the new password." ); - if ( QgsApplication::authManager()->passwordHelperEnabled() ) - { - warning += QStringLiteral( "

%1

" ).arg( tr( "The new password will automatically be stored in the system %1." ).arg( QgsAuthManager::passwordHelperDisplayName() ) ); - } + QString warning = tr( "The authentication store will be re-encrypted using the new password." ); + if ( QgsApplication::authManager()->passwordHelperEnabled() ) + { + warning += QStringLiteral( "

%1

" ).arg( tr( "The new password will automatically be stored in the system %1." ).arg( QgsAuthManager::passwordHelperDisplayName() ) ); + } - lblWarning->setText( warning ); + lblWarning->setText( warning ); + } } QgsPasswordLineEdit *QgsMasterPasswordResetDialog::oldPasswordLineEdit()