[LyX/master] Only split view rather than split and move
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Sep 15 11:36:36 UTC 2023
commit ceb1a4c393f61fb2a507bcd4607a52e75db16d5b
Author: Daniel Ramoeller <d.lyx at web.de>
Date: Wed Sep 6 17:47:27 2023 +0200
Only split view rather than split and move
Fix for #12893
---
src/frontends/qt/GuiView.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 3723afe..55a2183 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;
}
More information about the lyx-cvs
mailing list