]> git.lyx.org Git - features.git/commitdiff
Fix mac menubar only modifying the Prefs.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 16:50:10 +0000 (16:50 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 16:50:10 +0000 (16:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22601 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Menus.cpp

index ac78df63f1cb771627535c995908ad0ff168784a..fd4884f54b1f650a3a3c07c548590fc190982fe4 100644 (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,