From 71f5bbab42d48a2e825c3d3e0723fe900ddf60c6 Mon Sep 17 00:00:00 2001 From: Karol Baraniecki Date: Sat, 31 Dec 2022 17:52:09 +0100 Subject: LibGUI: Verify NonemptyText InputBox doesn't result in an empty string --- Userland/Libraries/LibGUI/InputBox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGUI/InputBox.h') diff --git a/Userland/Libraries/LibGUI/InputBox.h b/Userland/Libraries/LibGUI/InputBox.h index 62758675bd..9ca6a6c84a 100644 --- a/Userland/Libraries/LibGUI/InputBox.h +++ b/Userland/Libraries/LibGUI/InputBox.h @@ -32,10 +32,11 @@ private: explicit InputBox(Window* parent_window, DeprecatedString text_value, StringView prompt, StringView title, InputType input_type, StringView placeholder); virtual void on_done(ExecResult) override; - void build(InputType input_type); + void build(); DeprecatedString m_text_value; DeprecatedString m_prompt; + InputType m_input_type; DeprecatedString m_placeholder; RefPtr