From 986077c76599ca87e29f4635ab13467a3ea6025d Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Thu, 3 Nov 2022 15:27:18 +0800 Subject: [PATCH] revert not removing old dock widgets when restoring state --- src/AutoHideDockContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AutoHideDockContainer.cpp b/src/AutoHideDockContainer.cpp index 2cb2f34..952c1ef 100644 --- a/src/AutoHideDockContainer.cpp +++ b/src/AutoHideDockContainer.cpp @@ -315,8 +315,7 @@ void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget) d->DockWidget = DockWidget; d->SideTab->setDockWidget(DockWidget); CDockAreaWidget* OldDockArea = DockWidget->dockAreaWidget(); - // Don't remove dock widgets while restoring state, the current index pointer may be invalid - if (!DockWidget->dockManager()->isRestoringState() && OldDockArea) + if (OldDockArea) { OldDockArea->removeDockWidget(DockWidget); }