X Tutup
Skip to content

Unset submenu index when popup menu is hidden.#113794

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
bruvzg:menu_popup_crash
Dec 15, 2025
Merged

Unset submenu index when popup menu is hidden.#113794
Repiteo merged 1 commit intogodotengine:masterfrom
bruvzg:menu_popup_crash

Conversation

@bruvzg
Copy link
Member

@bruvzg bruvzg commented Dec 9, 2025

Also adds null checks for parent menu.

Fixes #113793

A menu can be reparented after the submenu index is set (e.g., Editor Settings... sets the index, and Collapse Menu property change reparents it), so the parent popup will no longer be valid PopupMenu.

@bruvzg bruvzg added this to the 4.6 milestone Dec 9, 2025
@bruvzg bruvzg requested a review from a team as a code owner December 9, 2025 09:51
@Repiteo Repiteo merged commit 3f566a8 into godotengine:master Dec 15, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 15, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collapse Main Menu leads to repro crash

3 participants

X Tutup