Change key event to disable export button.

With keyPressed(), no event is fired with backspace key.
This commit is contained in:
SET
2020-11-25 21:31:34 +01:00
parent de7880ae36
commit fe7d92caef

View File

@@ -54,5 +54,6 @@ void PopupExportSecretKey::Create()
m_btnApply->setToolTip(TR("TTTExportSecretKey")); m_btnApply->setToolTip(TR("TTTExportSecretKey"));
vblMain->addWidget(unique_ptr<WPushButton> (m_btnApply)); vblMain->addWidget(unique_ptr<WPushButton> (m_btnApply));
m_lePassphrase->keyPressed().connect(m_btnApply, &WPushButton::disable); // With keyPressed(), backspace is ignored.
m_lePassphrase->keyWentDown().connect(m_btnApply, &WPushButton::disable);
} }