mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 15:41:34 +08:00
fix crash when adding auto hide dock container without a previous dock area
This commit is contained in:
parent
85d7b3047c
commit
85da93c2fe
@ -294,7 +294,7 @@ void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget)
|
||||
|
||||
// Prevent overriding of d->Size parameter when this function is called during
|
||||
// state restoring
|
||||
if (!DockWidget->dockManager()->isRestoringState())
|
||||
if (!DockWidget->dockManager()->isRestoringState() && OldDockArea)
|
||||
{
|
||||
// The initial size should be a little bit bigger than the original dock
|
||||
// area size to prevent that the resize handle of this auto hid dock area
|
||||
|
Loading…
Reference in New Issue
Block a user