]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
* remove the need of an active GuiView
[features.git] / src / frontends / qt4 / GuiView.cpp
index 1f4ffe114dd31e7ef3f80b75259e974a56b693ba..4ff601ef91cbd078c0923fd8b312439b84490120 100644 (file)
@@ -278,7 +278,7 @@ GuiView::GuiView(int id)
        d.toolbars_ = new GuiToolbars(*this);
 
        // Fill up the menu bar.
-       guiApp->menus().fillMenuBar(this);
+       guiApp->menus().fillMenuBar(menuBar(), this);
 
        setCentralWidget(d.stack_widget_);
 
@@ -2024,7 +2024,7 @@ void GuiView::resetDialogs()
        // FIXME: the "math panels" toolbar takes an awful lot of time to
        // initialise so we don't do that for the time being.
        //d.toolbars_->init();
-       guiApp->menus().fillMenuBar(this);
+       guiApp->menus().fillMenuBar(menuBar(), this);
        if (d.layout_)
                d.layout_->updateContents(true);
        // Now update controls with current buffer.