From 96b104f0a6c8bfaa5d36586d44032e532ea0bf13 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 20 Apr 2020 11:24:59 +0200 Subject: [PATCH] Prevent empty GTC responses Signed-off-by: Simon Rozman --- lib/GTC_UI/src/GTC_UI.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/GTC_UI/src/GTC_UI.cpp b/lib/GTC_UI/src/GTC_UI.cpp index 380be4d..d8236b6 100644 --- a/lib/GTC_UI/src/GTC_UI.cpp +++ b/lib/GTC_UI/src/GTC_UI.cpp @@ -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(); }