diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 91035dd..b964a24 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -575,6 +575,11 @@ void DockContainerWidgetPrivate::moveIntoCenterOfSection(QWidget* Widget, CDockA if (DroppedDockWidget) { CDockAreaWidget* OldDockArea = DroppedDockWidget->dockAreaWidget(); + if (OldDockArea == TargetArea) + { + return; + } + if (OldDockArea) { OldDockArea->removeDockWidget(DroppedDockWidget);