]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMenubar.cpp
Transfer global mac menu bar initialization to GuiApplication ctor.
[lyx.git] / src / frontends / qt4 / GuiMenubar.cpp
index 1c5ed1326317533200a6c4ad2c755a4c575fa773..33e7f0b9b753725b302cdafc9d39ddbf55116cae 100644 (file)
@@ -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,