diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index d762b84..c3e8006 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -453,6 +453,7 @@ void CDockAreaWidget::removeDockWidget(CDockWidget* DockWidget) auto TabWidget = DockWidget->tabWidget(); TabWidget->hide(); d->tabBar()->removeTab(TabWidget); + DockWidget->setDockArea(nullptr); CDockContainerWidget* DockContainer = dockContainer(); if (NextOpenDockWidget) {