From d811915a0caee45ec69d33864175210fa2f6e313 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 29 Jun 2020 22:11:37 +0200 Subject: [PATCH] Reset DockArea pointer of DockWidget when removing DockWidget from DockArea --- src/DockAreaWidget.cpp | 1 + 1 file changed, 1 insertion(+) 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) {