mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Remove old crash fix
This commit is contained in:
parent
8e5e974669
commit
f3305b95d2
@ -515,7 +515,7 @@ void CDockAreaWidget::removeDockWidget(CDockWidget* DockWidget)
|
||||
{
|
||||
setCurrentDockWidget(NextOpenDockWidget);
|
||||
}
|
||||
else if (d->ContentsLayout->isEmpty() && DockContainer->dockAreaCount() >= 1)
|
||||
else if (d->ContentsLayout->isEmpty() && DockContainer->dockAreaCount() >= 1 && !isOverlayed()) // Don't remove empty dock areas that are overlayed, they'll be deleted by the overlay dock
|
||||
{
|
||||
ADS_PRINT("Dock Area empty");
|
||||
DockContainer->removeDockArea(this);
|
||||
|
@ -196,6 +196,10 @@ COverlayDockContainer::~COverlayDockContainer()
|
||||
{
|
||||
ADS_PRINT("~COverlayDockContainer");
|
||||
|
||||
// Remove event filter in case there are any queued messages
|
||||
d->DockArea->removeEventFilter(this);
|
||||
parent()->removeEventFilter(this);
|
||||
|
||||
if (d->DockManager)
|
||||
{
|
||||
parentContainer()->removeOverlayWidget(this);
|
||||
@ -310,10 +314,6 @@ void COverlayDockContainer::cleanupAndDelete()
|
||||
dockWidget->sideTabWidget()->hide();
|
||||
}
|
||||
|
||||
// Remove event filter in case there are any queued messages
|
||||
d->DockArea->removeEventFilter(this);
|
||||
parent()->removeEventFilter(this);
|
||||
|
||||
hide();
|
||||
deleteLater();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user