Only split view rather than split and move

Fix for #12893
This commit is contained in:
Daniel Ramoeller 2023-09-06 17:47:27 +02:00 committed by Jean-Marc Lasgouttes
parent 68ba1b57b4
commit ceb1a4c393

View File

@ -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;
}