Change key event to disable export button.
With keyPressed(), no event is fired with backspace key.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user