Fix duplicate about entries in mac app menu
Clearing the menu bar does not remove the actions from the app menu, but setting the action role allows Qt to take care of duplicates.
This commit is contained in:
@@ -192,7 +192,7 @@ void MenuManager::setup(MenuItem* menuItems) const
|
||||
|
||||
QMenuBar* menuBar = getMainWindow()->menuBar();
|
||||
|
||||
#ifdef FC_OS_MACOSX
|
||||
#if defined(FC_OS_MACOSX) && QT_VERSION >= 0x050900
|
||||
// Unknown Qt macOS bug observed with Qt >= 5.9.4 causes random crashes when viewing reused top level menus.
|
||||
menuBar->clear();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user