Skip to content

Commit

Permalink
Fix activate_item_by_event infinite recursion crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Nov 1, 2023
1 parent 9144457 commit 137b25c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/popup_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,7 @@ void PopupMenu::add_icon_radio_check_shortcut(const Ref<Texture2D> &p_icon, cons
}

void PopupMenu::add_submenu_item(const String &p_label, const String &p_submenu, int p_id) {
ERR_FAIL_COND_MSG(p_submenu.validate_node_name() != p_submenu, "Invalid node name for submenu, the following characters are not allowed:\n" + String::get_invalid_node_name_characters());
Item item;
item.text = p_label;
item.xl_text = atr(p_label);
Expand Down

0 comments on commit 137b25c

Please sign in to comment.