mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Fixed issue #173 - tab changes position when redocking it to the same position
This commit is contained in:
parent
0d406ece7c
commit
516465aefb
@ -575,6 +575,11 @@ void DockContainerWidgetPrivate::moveIntoCenterOfSection(QWidget* Widget, CDockA
|
|||||||
if (DroppedDockWidget)
|
if (DroppedDockWidget)
|
||||||
{
|
{
|
||||||
CDockAreaWidget* OldDockArea = DroppedDockWidget->dockAreaWidget();
|
CDockAreaWidget* OldDockArea = DroppedDockWidget->dockAreaWidget();
|
||||||
|
if (OldDockArea == TargetArea)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (OldDockArea)
|
if (OldDockArea)
|
||||||
{
|
{
|
||||||
OldDockArea->removeDockWidget(DroppedDockWidget);
|
OldDockArea->removeDockWidget(DroppedDockWidget);
|
||||||
|
Loading…
Reference in New Issue
Block a user