Prevent empty GTC responses

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-04-20 11:24:59 +02:00
parent 8b8690c71a
commit 96b104f0a6

View File

@ -137,6 +137,9 @@ wxGTCResponsePanel::wxGTCResponsePanel(winstd::sanitizing_wstring &response, con
m_challenge->SetLabelText(challenge);
m_challenge->Wrap(FromDIP(200));
// Response must not be empty.
m_response->SetValidator(wxTextValidator(wxFILTER_EMPTY));
this->Layout();
}