You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERR_FAIL_COND_MSG(p_button->get_parent() != buttons_hbox, vformat("Cannot remove button %s as it does not belong to this dialog.", p_button->get_name()));
384
384
ERR_FAIL_COND_MSG(p_button == ok_button, "Cannot remove dialog's OK button.");
385
385
386
-
Control *right_spacer = Object::cast_to<Control>(p_button->get_meta("__right_spacer"));
387
-
if (right_spacer) {
388
-
ERR_FAIL_COND_MSG(right_spacer->get_parent() != buttons_hbox, vformat("Cannot remove button %s as its associated spacer does not belong to this dialog.", p_button->get_name()));
386
+
Control *bound_spacer = Object::cast_to<Control>(p_button->get_meta("__bound_spacer"));
387
+
if (bound_spacer) {
388
+
ERR_FAIL_COND_MSG(bound_spacer->get_parent() != buttons_hbox, vformat("Cannot remove button %s as its associated spacer does not belong to this dialog.", p_button->get_name()));
0 commit comments