mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
Properly reset DockManager pointer when removing DockWidget from DockManager
This commit is contained in:
parent
d811915a0c
commit
0948f73bf8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user