1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fixed bug where spinbox would not update to it's actual value after non-numeric input

This commit is contained in:
Eric M
2020-04-26 22:10:11 +10:00
parent 7899b3e734
commit e76e39d5f5

View File

@@ -63,8 +63,8 @@ void SpinBox::_text_entered(const String &p_string) {
Variant value = expr->execute(Array(), nullptr, false); Variant value = expr->execute(Array(), nullptr, false);
if (value.get_type() != Variant::NIL) { if (value.get_type() != Variant::NIL) {
set_value(value); set_value(value);
_value_changed(0);
} }
_value_changed(0);
} }
LineEdit *SpinBox::get_line_edit() { LineEdit *SpinBox::get_line_edit() {