mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-27 00:35:27 -04:00
Don't obscure password field after invalid password attempt if setting is off (#2353)
This commit is contained in:
parent
4e1d3bfd73
commit
5bf4f51389
3 changed files with 8 additions and 1 deletions
|
@ -184,7 +184,9 @@ void DatabaseOpenWidget::openDatabase()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_ui->editPassword->isPasswordVisible()) {
|
||||||
m_ui->editPassword->setShowPassword(false);
|
m_ui->editPassword->setShowPassword(false);
|
||||||
|
}
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
|
|
||||||
QFile file(m_filename);
|
QFile file(m_filename);
|
||||||
|
|
|
@ -71,6 +71,10 @@ void PasswordEdit::setShowPassword(bool show)
|
||||||
emit showPasswordChanged(show);
|
emit showPasswordChanged(show);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PasswordEdit::isPasswordVisible() const {
|
||||||
|
return isEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
bool PasswordEdit::passwordsEqual() const
|
bool PasswordEdit::passwordsEqual() const
|
||||||
{
|
{
|
||||||
return text() == m_basePasswordEdit->text();
|
return text() == m_basePasswordEdit->text();
|
||||||
|
|
|
@ -31,6 +31,7 @@ public:
|
||||||
|
|
||||||
explicit PasswordEdit(QWidget* parent = nullptr);
|
explicit PasswordEdit(QWidget* parent = nullptr);
|
||||||
void enableVerifyMode(PasswordEdit* baseEdit);
|
void enableVerifyMode(PasswordEdit* baseEdit);
|
||||||
|
bool isPasswordVisible() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setShowPassword(bool show);
|
void setShowPassword(bool show);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue