Skip to content

Commit 516465a

Browse files
Fixed issue #173 - tab changes position when redocking it to the same position
1 parent 0d406ec commit 516465a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DockContainerWidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@ void DockContainerWidgetPrivate::moveIntoCenterOfSection(QWidget* Widget, CDockA
575575
if (DroppedDockWidget)
576576
{
577577
CDockAreaWidget* OldDockArea = DroppedDockWidget->dockAreaWidget();
578+
if (OldDockArea == TargetArea)
579+
{
580+
return;
581+
}
582+
578583
if (OldDockArea)
579584
{
580585
OldDockArea->removeDockWidget(DroppedDockWidget);

0 commit comments

Comments
 (0)