mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +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);
|
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");
|
ADS_PRINT("Dock Area empty");
|
||||||
DockContainer->removeDockArea(this);
|
DockContainer->removeDockArea(this);
|
||||||
|
@ -196,6 +196,10 @@ COverlayDockContainer::~COverlayDockContainer()
|
|||||||
{
|
{
|
||||||
ADS_PRINT("~COverlayDockContainer");
|
ADS_PRINT("~COverlayDockContainer");
|
||||||
|
|
||||||
|
// Remove event filter in case there are any queued messages
|
||||||
|
d->DockArea->removeEventFilter(this);
|
||||||
|
parent()->removeEventFilter(this);
|
||||||
|
|
||||||
if (d->DockManager)
|
if (d->DockManager)
|
||||||
{
|
{
|
||||||
parentContainer()->removeOverlayWidget(this);
|
parentContainer()->removeOverlayWidget(this);
|
||||||
@ -310,10 +314,6 @@ void COverlayDockContainer::cleanupAndDelete()
|
|||||||
dockWidget->sideTabWidget()->hide();
|
dockWidget->sideTabWidget()->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove event filter in case there are any queued messages
|
|
||||||
d->DockArea->removeEventFilter(this);
|
|
||||||
parent()->removeEventFilter(this);
|
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user