diff options
author | Karol Baraniecki <karol@baraniecki.eu> | 2022-12-31 17:52:09 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-02-04 18:46:39 -0700 |
commit | 71f5bbab42d48a2e825c3d3e0723fe900ddf60c6 (patch) | |
tree | 457d915876fa521b5d1a451dab04d9f8875dc8ad /Userland/Libraries/LibGUI/InputBox.h | |
parent | 506c26acce41367c31da683c8ed3194babdc2a85 (diff) | |
download | serenity-71f5bbab42d48a2e825c3d3e0723fe900ddf60c6.zip |
LibGUI: Verify NonemptyText InputBox doesn't result in an empty string
Diffstat (limited to 'Userland/Libraries/LibGUI/InputBox.h')
-rw-r--r-- | Userland/Libraries/LibGUI/InputBox.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<Button> m_ok_button; |