From fe7d92caef502e9db9a8c4b09acb8aa920950bb5 Mon Sep 17 00:00:00 2001 From: SET Date: Wed, 25 Nov 2020 21:31:34 +0100 Subject: [PATCH] Change key event to disable export button. With keyPressed(), no event is fired with backspace key. --- PopupExportSecretKey.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PopupExportSecretKey.cpp b/PopupExportSecretKey.cpp index e24cd6d..2f2aecf 100644 --- a/PopupExportSecretKey.cpp +++ b/PopupExportSecretKey.cpp @@ -54,5 +54,6 @@ void PopupExportSecretKey::Create() m_btnApply->setToolTip(TR("TTTExportSecretKey")); vblMain->addWidget(unique_ptr (m_btnApply)); - m_lePassphrase->keyPressed().connect(m_btnApply, &WPushButton::disable); + // With keyPressed(), backspace is ignored. + m_lePassphrase->keyWentDown().connect(m_btnApply, &WPushButton::disable); }