FreeCAD: master 0e2ab081

Author Committer Branch Timestamp Parent
realthunder wwmayer master 2020-12-22 23:17:57 master 4a9da93e
Changeset Gui: temporary fix of preference menu in macos

QAction defaults menu role to TextHeuristicRole, which causes qt to
guess the menu role based on action title. And titles start with
'Config', 'Options', 'Settings', etc. will be considered as preference
menu. It seems some non-english translation causes the wrong action be
chosen as preference, such as 'Treeview actions'.

This commit just applied a temporary fix to default to QAction::NoRole
for GroupCommand. If there is ever some GroupCommand need to be a
system menu item on macos, we could add some command bit flag for that
purpose.
mod - src/Gui/Action.cpp Diff File
mod - src/Gui/Command.cpp Diff File
mod - src/Gui/CommandStd.cpp Diff File