X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiMenubar.cpp;h=33e7f0b9b753725b302cdafc9d39ddbf55116cae;hb=4803a77708aac1f8fce6f44c261d23f7419913b9;hp=1c5ed1326317533200a6c4ad2c755a4c575fa773;hpb=6f57240133ef149752e5e419abf0346f93f0d395;p=lyx.git diff --git a/src/frontends/qt4/GuiMenubar.cpp b/src/frontends/qt4/GuiMenubar.cpp index 1c5ed13263..33e7f0b9b7 100644 --- a/src/frontends/qt4/GuiMenubar.cpp +++ b/src/frontends/qt4/GuiMenubar.cpp @@ -98,11 +98,7 @@ void GuiMenubar::init() } -GuiMenubar::~GuiMenubar() { -#ifdef Q_WS_MACX - delete mac_menubar_; -#endif -} +GuiMenubar::~GuiMenubar() {} void GuiMenubar::openByName(QString const & name) { @@ -137,8 +133,6 @@ void GuiMenubar::openByName(QString const & name) void GuiMenubar::macxMenuBarInit() { - mac_menubar_ = new QMenuBar; - /* Since Qt 4.2, the qt/mac menu code has special code for specifying the role of a menu entry. However, it does not work very well with our scheme of creating menus on demand,