Commit 939b7bfe authored by Gabriel de Dietrich's avatar Gabriel de Dietrich Committed by Liang Qi
Browse files

QCocoaMenuBar: set the native item's title


Or, "Give Cocoa a Chance to do its Magic"

Some menubar items, like the "Edit" menu, get extra items added
at some point by Cocoa. Evidence points out to those extra items
being added right after the NSMenu holding the menubar is set as
the current menubar. At that point, both the child NSMenu and its
NSMenuItem (the entry in the menubar) must have their title set.

Therefore, we must set the menubar native item's title before
QCocoaMenuBar::updateMenuBarImmediately() sets the main menu.

Task-number: QTBUG-53085
Change-Id: Idd775cf0e3485739f38363a84cfed8d2db9cb662
Reviewed-by: default avatarJake Petroules <jake.petroules@qt.io>
Reviewed-by: default avatarLiang Qi <liang.qi@qt.io>
Reviewed-by: default avatarMarko Kangas <marko.kangas@theqtcompany.com>
Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>
parent 18048cae
No related merge requests found
Showing with 3 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment