QLMenubar.C: Fix potential MACX crash on menubar initialisation.

The MACX specific menubar hack present in qt2 frontend is still not ported to the qt4 frontend.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13376 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-03-15 11:12:52 +00:00
parent 369fe1ab82
commit 5ea9a78905

View File

@ -22,7 +22,7 @@
#include "MenuBackend.h" #include "MenuBackend.h"
#include "debug.h" #include "debug.h"
#include <QMenuBar> #include <QMenuBar>
#include <QCursor> #include <QCursor>
@ -165,7 +165,7 @@ void QLMenubar::macxMenuBarInit()
menubackend_.specialMenu("LyX"); menubackend_.specialMenu("LyX");
// make sure that the special entries are added to the first // make sure that the special entries are added to the first
// menu even before this menu has been opened. // menu even before this menu has been opened.
name_map_[menubackend_.getMenubar().begin()->submenuname()]->update(); //name_map_[menubackend_.getMenubar().begin()->submenuname()]->update();
#endif #endif
} }