]> git.lyx.org Git - lyx.git/commitdiff
Only split view rather than split and move
authorDaniel Ramoeller <d.lyx@web.de>
Wed, 6 Sep 2023 15:47:27 +0000 (17:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Sep 2023 12:05:33 +0000 (14:05 +0200)
Fix for #12893

src/frontends/qt/GuiView.cpp

index 3723afec1f6a307e9ee4ff1f50e7c5f24313ee15..55a21831ffb64fbfff462432337fa3edffd2b106 100644 (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;
 }