mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
Don't obscure password field after invalid password attempt if setting is off (#2353)
This commit is contained in:
parent
4e1d3bfd73
commit
5bf4f51389
@ -184,7 +184,9 @@ void DatabaseOpenWidget::openDatabase()
|
||||
return;
|
||||
}
|
||||
|
||||
m_ui->editPassword->setShowPassword(false);
|
||||
if (!m_ui->editPassword->isPasswordVisible()) {
|
||||
m_ui->editPassword->setShowPassword(false);
|
||||
}
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
QFile file(m_filename);
|
||||
|
@ -71,6 +71,10 @@ void PasswordEdit::setShowPassword(bool show)
|
||||
emit showPasswordChanged(show);
|
||||
}
|
||||
|
||||
bool PasswordEdit::isPasswordVisible() const {
|
||||
return isEnabled();
|
||||
}
|
||||
|
||||
bool PasswordEdit::passwordsEqual() const
|
||||
{
|
||||
return text() == m_basePasswordEdit->text();
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
|
||||
explicit PasswordEdit(QWidget* parent = nullptr);
|
||||
void enableVerifyMode(PasswordEdit* baseEdit);
|
||||
bool isPasswordVisible() const;
|
||||
|
||||
public slots:
|
||||
void setShowPassword(bool show);
|
||||
|
Loading…
Reference in New Issue
Block a user