mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #34633 from qarmin/lineedit_signal
Don't try to connect "text_entered" signal to nodes other than LineEdit
This commit is contained in:
commit
406dac1917
@ -444,7 +444,9 @@ bool AcceptDialog::has_autowrap() {
|
||||
void AcceptDialog::register_text_enter(Node *p_line_edit) {
|
||||
|
||||
ERR_FAIL_NULL(p_line_edit);
|
||||
p_line_edit->connect("text_entered", this, "_builtin_text_entered");
|
||||
LineEdit *line_edit = Object::cast_to<LineEdit>(p_line_edit);
|
||||
if (line_edit)
|
||||
line_edit->connect("text_entered", this, "_builtin_text_entered");
|
||||
}
|
||||
|
||||
void AcceptDialog::_update_child_rects() {
|
||||
|
Loading…
Reference in New Issue
Block a user