mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Reset DockArea pointer of DockWidget when removing DockWidget from DockArea
This commit is contained in:
parent
da20405a6a
commit
d811915a0c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user