mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Fix crash when auth system not available and master password reset attempted
This commit is contained in:
parent
73525ed182
commit
bcdedb4fcf
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user