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