From a6f3a3c59cbe29aca132005e6c5da35ddca0192b Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sun, 23 Dec 2007 18:51:11 +0000 Subject: [PATCH] * first clear the menubar, then fill it (with mac menu items) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22285 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiMenubar.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiMenubar.cpp b/src/frontends/qt4/GuiMenubar.cpp index aac076876b..c698f1e961 100644 --- a/src/frontends/qt4/GuiMenubar.cpp +++ b/src/frontends/qt4/GuiMenubar.cpp @@ -42,6 +42,10 @@ GuiMenubar::GuiMenubar(GuiView * view, MenuBackend & mbe) void GuiMenubar::init() { + // Clear all menubar contents before filling it. + owner_->menuBar()->clear(); + + // setup special mac specific menu item macxMenuBarInit(); LYXERR(Debug::GUI, "populating menu bar" << to_utf8(menubackend_.getMenubar().name())); @@ -57,9 +61,6 @@ void GuiMenubar::init() << menubackend_.getMenubar().size()); } - // Clear all menubar contents before filling it. - owner_->menuBar()->clear(); - Menu menu; menubackend_.expand(menubackend_.getMenubar(), menu, owner_->buffer());