Fix crash when auth system not available and master password reset attempted

This commit is contained in:
Nyall Dawson 2025-02-12 14:32:29 +10:00
parent 73525ed182
commit bcdedb4fcf
No known key found for this signature in database
GPG Key ID: 4C61673F0BF197FC

View File

@ -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( "<p><b>%1</b></p>" ).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( "<p><b>%1</b></p>" ).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()