Fix mac menubar only modifying the Prefs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22601 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-16 16:50:10 +00:00
parent 68d11a0b29
commit 47f929d48d

View File

@ -121,6 +121,12 @@ QMenu * Menus::menu(QString const & name)
void Menus::macxMenuBarInit(GuiView * view)
{
// The Mac menubar initialisation must be done only once!
static bool done = false;
if (done)
return;
done = true;
/* 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,