summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
25e0113)
special menu item for Mac see the "right" status of the LFUNs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23738
a592a061-630c-0410-9148-
cb99ea01b6c8
// register view
views_[id] = view;
updateIds(views_, view_ids_);
// register view
views_[id] = view;
updateIds(views_, view_ids_);
-
- theLyXFunc().setLyXView(view);
view->show();
if (!geometry_arg.isEmpty()) {
#ifdef Q_WS_WIN
view->show();
if (!geometry_arg.isEmpty()) {
#ifdef Q_WS_WIN
// GuiToolbars *must* be initialised before the menu bar.
d.toolbars_ = new GuiToolbars(*this);
// GuiToolbars *must* be initialised before the menu bar.
d.toolbars_ = new GuiToolbars(*this);
+ // set ourself as the current view. This is needed for the menu bar
+ // filling, at least for the static special menu item on Mac. Otherwise
+ // they are greyed out.
+ theLyXFunc().setLyXView(this);
+
// Fill up the menu bar.
guiApp->menus().fillMenuBar(menuBar(), this);
// Fill up the menu bar.
guiApp->menus().fillMenuBar(menuBar(), this);