Properly reset DockManager pointer when removing DockWidget from DockManager

This commit is contained in:
Uwe Kindler 2020-06-30 11:45:23 +02:00
parent d811915a0c
commit 0948f73bf8

View File

@ -708,6 +708,7 @@ void CDockManager::removeDockWidget(CDockWidget* Dockwidget)
emit dockWidgetAboutToBeRemoved(Dockwidget);
d->DockWidgetsMap.remove(Dockwidget->objectName());
CDockContainerWidget::removeDockWidget(Dockwidget);
Dockwidget->setDockManager(nullptr);
emit dockWidgetRemoved(Dockwidget);
}