diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/SpinBox.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/SpinBox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/SpinBox.cpp b/Userland/Libraries/LibGUI/SpinBox.cpp index 48e2a1f95a..a2acc9ffc1 100644 --- a/Userland/Libraries/LibGUI/SpinBox.cpp +++ b/Userland/Libraries/LibGUI/SpinBox.cpp @@ -96,6 +96,9 @@ void SpinBox::set_range(int min, int max, AllowCallback allow_callback) on_change(m_value); } + m_increment_button->set_enabled(m_value < m_max); + m_decrement_button->set_enabled(m_value > m_min); + update(); } |