From db026279e726c4a83f83f6e60f8660a78881cd35 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Thu, 8 Dec 2022 10:09:16 +0800 Subject: [PATCH] Fix crash caused by dockContainerWidget not removing auto hide dock container widget properly. --- src/AutoHideDockContainer.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/AutoHideDockContainer.cpp b/src/AutoHideDockContainer.cpp index d86e7cf..1e95908 100644 --- a/src/AutoHideDockContainer.cpp +++ b/src/AutoHideDockContainer.cpp @@ -187,14 +187,7 @@ AutoHideDockContainerPrivate::AutoHideDockContainerPrivate( //============================================================================ CDockContainerWidget* CAutoHideDockContainer::dockContainer() const { - if (d->DockArea) - { - return d->DockArea->dockContainer(); - } - else - { - return internal::findParent(this); - } + return internal::findParent(this); }