]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.C
This commit initialise correctly the tab bar in a new window.
[features.git] / src / frontends / qt4 / GuiView.C
index 91c2d850dcbb15cb07003c71ce93e20e63bde5a5..0bdc5bfa5ce4dd74a1ebf9e2acd86c23ec257fda 100644 (file)
@@ -150,6 +150,9 @@ void GuiView::init()
        QObject::connect(&statusbar_timer_, SIGNAL(timeout()),
                this, SLOT(update_view_state_qt()));
 
+       if (!work_area_->bufferView().buffer() && !theBufferList().empty())
+               setBuffer(theBufferList().first());
+
        // make sure the buttons are disabled if needed
        updateToolbars();
        updateLayoutChoice();