diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-16 15:08:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-16 15:08:52 +0200 |
commit | 1db169244ab1201c07d86ace3991708cbdf01b72 (patch) | |
tree | b35a9f4e7faf91dd126e9a96094c7b363cca4442 | |
parent | 862682b1bbaf18e9768308ba38730cd02775e65e (diff) | |
download | serenity-1db169244ab1201c07d86ace3991708cbdf01b72.zip |
GSpinBox: The initial text should be "0".
-rw-r--r-- | LibGUI/GSpinBox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/LibGUI/GSpinBox.cpp b/LibGUI/GSpinBox.cpp index f7a6d4b38d..774878c9dd 100644 --- a/LibGUI/GSpinBox.cpp +++ b/LibGUI/GSpinBox.cpp @@ -6,6 +6,7 @@ GSpinBox::GSpinBox(GWidget* parent) : GWidget(parent) { m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this); + m_editor->set_text("0"); m_editor->on_change = [this] { bool ok; int value = m_editor->text().to_uint(ok); |