Thanks for Patrick De Visschere for noticing.
This commit is contained in:
Richard Heck 2018-02-25 17:22:07 -05:00
parent 5ddd377a0a
commit ef5d741ba5

View File

@ -2551,7 +2551,7 @@ void Menus::fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial)
#if defined(Q_OS_MAC) && (defined(QT_MAC_USE_COCOA) || (QT_VERSION >= 0x050000)) #if defined(Q_OS_MAC) && (defined(QT_MAC_USE_COCOA) || (QT_VERSION >= 0x050000))
// On Mac OS with QT/cocoa, the menu is not displayed if there is no action // On Mac OS with QT/cocoa, the menu is not displayed if there is no action
// so we create a temporary one here // so we create a temporary one here
QAction * action = new QAction(menu); QAction * action = new QAction(menuptr);
menu->addAction(action); menu->addAction(action);
#endif #endif