mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-13 00:30:25 +08:00
Fix moving content to parent on toggle view
This commit is contained in:
parent
f0f3caeb32
commit
ac311d6d45
@ -195,7 +195,7 @@ void DockWidgetPrivate::showDockWidget()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If this widget is pinned and there are no opened dock widgets, unpin the overlay widget by moving it's contents to parent container
|
// If this widget is pinned and there are no opened dock widgets, unpin the overlay widget by moving it's contents to parent container
|
||||||
if (Container->openedDockWidgets().count() == 0 && DockArea->isOverlayed())
|
if (Container->openedDockWidgets().count() == 0 && DockArea->isOverlayed() && !DockManager->isRestoringState())
|
||||||
{
|
{
|
||||||
DockArea->overlayDockContainer()->moveContentsToParent();
|
DockArea->overlayDockContainer()->moveContentsToParent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user