Skip to content

Commit

Permalink
Merge pull request #34633 from qarmin/lineedit_signal
Browse files Browse the repository at this point in the history
Don't try to connect "text_entered" signal to nodes other than LineEdit
  • Loading branch information
akien-mga authored Dec 31, 2019
2 parents 219a217 + 0a1d3e4 commit 406dac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/gui/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 406dac1

Please sign in to comment.