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); }