diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index 4fa690edec..4fb3ce2227 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -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)) // On Mac OS with QT/cocoa, the menu is not displayed if there is no action // so we create a temporary one here - QAction * action = new QAction(menu); + QAction * action = new QAction(menuptr); menu->addAction(action); #endif