Skip to content

Fix crash when opening menus with localized submenu titles on macOS - #12120

Merged
grliszas14 merged 2 commits into
audacity:masterfrom
grliszas14:german_effect_crash
Sep 15, 2026
Merged

grliszas14 merged 2 commits into
audacity:masterfrom
grliszas14:german_effect_crash

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: #12025

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 13aad7fa-8602-473d-b6e8-95d78858f440

📥 Commits

Reviewing files that changed from the base of the PR and between 82ab33d132b8a6c36cfd946adf00552522673bd1 and 0307c7d7c38a1fbf374c303ae5c3e5ac769fdd16.

📒 Files selected for processing (1)
  • src/appshell/internal/platform/macos/macosappmenumodelhook.mm

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

setUpMenu now assigns PLATFORM.MenuItem.NoRole to each top-level platform menu. On macOS, isAutoFillItem: now excludes QCocoaNSMenuItem instances and identifies remaining AutoFill items by their non-empty submenus instead of scanning for qt_itemFired:.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 88e71

The menu handling changes do not leave a concrete unresolved merge risk.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: fixing a macOS crash when opening menus with localized submenu titles.
Description check ✅ Passed The description includes the linked issue and required checklist sections. It does not include the requested short description and motivation, and it leaves Testflow testing unchecked, but it is other…
Linked Issues check ✅ Passed The changes address issue #12025. PlatformMenuBar.qml assigns PLATFORM.MenuItem.NoRole to each top-level menu item. macosappmenumodelhook.mm excludes QCocoaNSMenuItem Qt submenus from AppKit A…
Out of Scope Changes check ✅ Passed The pull request changes only macOS native menu handling. Both changes support reliable construction or classification of the menu involved in issue #12025. No unrelated change is present in the revie…

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@grliszas14
grliszas14 requested a review from kryksyh September 14, 2026 07:34
@grliszas14
grliszas14 merged commit a9c97d0 into audacity:master Sep 15, 2026
17 checks passed
@grliszas14
grliszas14 deleted the german_effect_crash branch September 15, 2026 08:25
kryksyh added a commit that referenced this pull request Sep 22, 2026
Fix crash when opening menus with localized submenu titles on macOS (#12120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selecting Effect menu crashes the app when set to German

2 participants