diff options
author | Jonathan White <support@dmapps.us> | 2020-09-20 18:28:03 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-09-26 16:26:24 +0300 |
commit | 829697d53e8d0f3f345a13a97cd5f26f0aaa349c (patch) | |
tree | a5d6218bab5919b3f2dd95c0178aa039f0665a1f /src/gui/EntryPreviewWidget.cpp | |
parent | 9886b1075fbddca0d4ef564c1bb481afcc199c3f (diff) |
Enforce fixed password font in preview widget
* Fix #5432
Diffstat (limited to 'src/gui/EntryPreviewWidget.cpp')
-rw-r--r-- | src/gui/EntryPreviewWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/EntryPreviewWidget.cpp b/src/gui/EntryPreviewWidget.cpp index b873800a8..1dc05c3b7 100644 --- a/src/gui/EntryPreviewWidget.cpp +++ b/src/gui/EntryPreviewWidget.cpp @@ -50,7 +50,6 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent) // Entry m_ui->entryTotpButton->setIcon(resources()->icon("chronometer")); m_ui->entryCloseButton->setIcon(resources()->icon("dialog-close")); - m_ui->entryPasswordLabel->setFont(Font::fixedFont()); m_ui->togglePasswordButton->setIcon(resources()->onOffIcon("password-show")); m_ui->toggleEntryNotesButton->setIcon(resources()->onOffIcon("password-show")); m_ui->toggleGroupNotesButton->setIcon(resources()->onOffIcon("password-show")); @@ -194,6 +193,7 @@ void EntryPreviewWidget::setPasswordVisible(bool state) if (state) { m_ui->entryPasswordLabel->setText(password); m_ui->entryPasswordLabel->setCursorPosition(0); + m_ui->entryPasswordLabel->setFont(Font::fixedFont()); } else if (password.isEmpty() && !config()->get(Config::Security_PasswordEmptyPlaceholder).toBool()) { m_ui->entryPasswordLabel->setText(""); } else { |