Prevent empty GTC responses
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user