]> git.lyx.org Git - features.git/commitdiff
Amend ca4426e5.
authorRichard Heck <rgheck@lyx.org>
Sun, 25 Feb 2018 22:22:07 +0000 (17:22 -0500)
committerRichard Heck <rgheck@lyx.org>
Sun, 25 Feb 2018 22:23:46 +0000 (17:23 -0500)
Thanks for Patrick De Visschere for noticing.

src/frontends/qt4/Menus.cpp

index 4fa690edecda618b876713a656c54afa2b0b79cb..4fb3ce22275e4917f87a0c9468ef3057bdf73784 100644 (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))
                // 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