From: Daniel Ramoeller Date: Wed, 6 Sep 2023 15:47:27 +0000 (+0200) Subject: Only split view rather than split and move X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ceb1a4c393f61fb2a507bcd4607a52e75db16d5b;p=features.git Only split view rather than split and move Fix for #12893 --- diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index 3723afec1f..55a21831ff 100644 --- a/src/frontends/qt/GuiView.cpp +++ b/src/frontends/qt/GuiView.cpp @@ -1880,7 +1880,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; }