From 85da93c2fe6ae9ae99b5a4b023fe2fbe5d032b1d Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Fri, 28 Oct 2022 14:19:12 +0800 Subject: [PATCH] fix crash when adding auto hide dock container without a previous dock area --- src/AutoHideDockContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoHideDockContainer.cpp b/src/AutoHideDockContainer.cpp index 7e8bae4..efc2774 100644 --- a/src/AutoHideDockContainer.cpp +++ b/src/AutoHideDockContainer.cpp @@ -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