void GuiApplication::execBatchCommands()
{
+ // init the global menubar on Mac. This must be done after the session
+ // was recovered to know the "last files".
+ if (d->global_menubar_)
+ d->menus_.fillMenuBar(d->global_menubar_, 0, true);
+
LyX::ref().execBatchCommands();
}
}
-void GuiApplication::initGlobalMenu()
-{
- if (d->global_menubar_)
- menus().fillMenuBar(d->global_menubar_, 0, true);
-}
-
-
void GuiApplication::onLastWindowClosed()
{
if (d->global_menubar_)