]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiView.cpp
Remove ugly frame around word count (#12625).
[lyx.git] / src / frontends / qt / GuiView.cpp
index c9a9ff87fcc07b80ad763ef983cd61f97bef020e..17ae3f00acefdf35359a8f84f4f939fce3f62552 100644 (file)
@@ -651,7 +651,6 @@ GuiView::GuiView(int id)
 
        stat_counts_ = new GuiClickableLabel(statusBar());
        stat_counts_->setAlignment(Qt::AlignCenter);
-       stat_counts_->setFrameStyle(QFrame::StyledPanel);
        stat_counts_->hide();
        statusBar()->addPermanentWidget(stat_counts_);
 
@@ -1880,7 +1879,8 @@ TabWorkArea * GuiView::addTabWorkArea()
        QObject::connect(twa, SIGNAL(lastWorkAreaRemoved()),
                         this, SLOT(on_lastWorkAreaRemoved()));
 
-       d.splitter_->addWidget(twa);
+       d.splitter_->insertWidget(d.splitter_->indexOf(d.currentTabWorkArea()) + 1,
+                                 twa);
        d.stack_widget_->setCurrentWidget(d.splitter_);
        return twa;
 }
@@ -4879,8 +4879,8 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        TabWorkArea * twa = addTabWorkArea();
                        GuiWorkArea * wa = twa->addWorkArea(*doc_buffer, *this);
 
-                       wa->bufferView().setCursor(bv->cursor());
-                       dr.screenUpdate(Update::ForceAll | Update::FitCursor);
+                       wa->bufferView().copySettingsFrom(*bv);
+                       dr.screenUpdate(Update::ForceAll);
                        setCurrentWorkArea(wa);
                        break;
                }