Merge pull request #38223 from EricEzaM/spinbox-update-lineedit-after-bad-input

Fixed bug where spinbox would not update to it's actual value after non-numeric input
This commit is contained in:
Rémi Verschelde 2020-08-14 12:16:32 +02:00 committed by GitHub
commit fac2bb99ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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