Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2022-10-24 14:23:11 +0300
committerJonathan White <support@dmapps.us>2022-10-25 06:48:34 +0300
commit422fd9125534fc26adf85d6bd31dd868a19f910d (patch)
tree8d8a68f4d5b84582ae7e69cc49c8a4f430bff54b
parentd83743ea0b207e4a5c034af6a049ba157470e093 (diff)
Fix display of passwords in preview panel
* Fix #8627 - don't HTML escape plain text... * Fix #8624 - ensure use of monospace font when displaying passwords in preview panel
-rw-r--r--src/gui/EntryPreviewWidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/EntryPreviewWidget.cpp b/src/gui/EntryPreviewWidget.cpp
index 5050aedec..11de4a60f 100644
--- a/src/gui/EntryPreviewWidget.cpp
+++ b/src/gui/EntryPreviewWidget.cpp
@@ -250,6 +250,8 @@ void EntryPreviewWidget::setUsernameVisible(bool state)
void EntryPreviewWidget::setPasswordVisible(bool state)
{
+ m_ui->entryPasswordLabel->setFont(Font::fixedFont());
+
const QString password = m_currentEntry->resolveMultiplePlaceholders(m_currentEntry->password());
if (state) {
if (config()->get(Config::GUI_ColorPasswords).toBool()) {
@@ -268,7 +270,7 @@ void EntryPreviewWidget::setPasswordVisible(bool state)
m_ui->entryPasswordLabel->setHtml(html);
} else {
// No color
- m_ui->entryPasswordLabel->setPlainText(password.toHtmlEscaped());
+ m_ui->entryPasswordLabel->setPlainText(password);
}
} else if (password.isEmpty() && !config()->get(Config::Security_PasswordEmptyPlaceholder).toBool()) {
m_ui->entryPasswordLabel->setPlainText("");
@@ -276,7 +278,6 @@ void EntryPreviewWidget::setPasswordVisible(bool state)
m_ui->entryPasswordLabel->setPlainText(QString("\u25cf").repeated(6));
}
- m_ui->entryPasswordLabel->setFont(Font::fixedFont());
m_ui->togglePasswordButton->setIcon(icons()->onOffIcon("password-show", state));
}