From eee9ebb41d0df029d09f3663d865cb60ea9c7fe8 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sun, 17 May 2020 12:21:52 +0200 Subject: [PATCH] Fixed an issue that caused wrong inserten order of dock widget when dropping a floating widget to the left or top container drop area --- src/DockContainerWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index b964a24..1852b7d 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -415,9 +415,10 @@ void DockContainerWidgetPrivate::dropIntoContainer(CFloatingDockContainer* Float } else if (FloatingSplitter->orientation() == InsertParam.orientation()) { + int InsertIndex = InsertParam.append() ? Splitter->count() : 0; while (FloatingSplitter->count()) { - insertWidgetIntoSplitter(Splitter, FloatingSplitter->widget(0), InsertParam.append()); + Splitter->insertWidget(InsertIndex++, FloatingSplitter->widget(0)); } } else