From 94222e61709468f7fc7713fddeaa501c92dd57a5 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 26 Feb 2018 16:18:33 -0500 Subject: [PATCH] Re-amend ca4426e5. --- src/frontends/qt4/Menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index 4fb3ce2227..662ea66046 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -2552,7 +2552,7 @@ void Menus::fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial) // 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(menuptr); - menu->addAction(action); + menuptr->addAction(action); #endif qmb->addMenu(menuptr); -- 2.39.2