Browse Source

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
Rémi Verschelde 5 years ago
parent
commit
fac2bb99ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/gui/spin_box.cpp

+ 1 - 1
scene/gui/spin_box.cpp

@@ -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() {