Reset DockArea pointer of DockWidget when removing DockWidget from DockArea

This commit is contained in:
Uwe Kindler 2020-06-29 22:11:37 +02:00
parent da20405a6a
commit d811915a0c

View File

@ -453,6 +453,7 @@ void CDockAreaWidget::removeDockWidget(CDockWidget* DockWidget)
auto TabWidget = DockWidget->tabWidget(); auto TabWidget = DockWidget->tabWidget();
TabWidget->hide(); TabWidget->hide();
d->tabBar()->removeTab(TabWidget); d->tabBar()->removeTab(TabWidget);
DockWidget->setDockArea(nullptr);
CDockContainerWidget* DockContainer = dockContainer(); CDockContainerWidget* DockContainer = dockContainer();
if (NextOpenDockWidget) if (NextOpenDockWidget)
{ {