mirror of
https://github.com/godotengine/godot
synced 2024-09-05 05:58:29 +00:00
Merge pull request #84183 from jsjtxietian/fix-activate_item_by_event-crash
Fix `activate_item_by_event` infinite recursion crash
This commit is contained in:
commit
cfbccdbf44
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue