Fixed issue #173 - tab changes position when redocking it to the same position

This commit is contained in:
Uwe Kindler 2020-05-15 12:25:22 +02:00
parent 0d406ece7c
commit 516465aefb

View File

@ -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);