Prevent empty GTC responses
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
8b8690c71a
commit
96b104f0a6
@ -137,6 +137,9 @@ wxGTCResponsePanel::wxGTCResponsePanel(winstd::sanitizing_wstring &response, con
|
|||||||
m_challenge->SetLabelText(challenge);
|
m_challenge->SetLabelText(challenge);
|
||||||
m_challenge->Wrap(FromDIP(200));
|
m_challenge->Wrap(FromDIP(200));
|
||||||
|
|
||||||
|
// Response must not be empty.
|
||||||
|
m_response->SetValidator(wxTextValidator(wxFILTER_EMPTY));
|
||||||
|
|
||||||
this->Layout();
|
this->Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user