From fd583c091a154cce7a6cdb3b0e794b8bdcaa0cfb Mon Sep 17 00:00:00 2001 From: SET Date: Sat, 7 Nov 2020 22:28:33 +0100 Subject: [PATCH] Optimize passphrase line edit visibility in certify key popup. WLineEdit::isVisible always returns false when the popup is hidden ! --- PopupCertifyUserId.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PopupCertifyUserId.h b/PopupCertifyUserId.h index 7e2ac50..9a59e68 100644 --- a/PopupCertifyUserId.h +++ b/PopupCertifyUserId.h @@ -69,7 +69,8 @@ public: */ bool IsPasswordVisible() const { - return m_lePassphrase->isVisible(); + // isVisible is always false when the popup is hidden ! + return !(m_lePassphrase->isHidden()); } /** * Used to forward the passphrase to the loopback passphrase provider.