mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Fix crash when restoring state but better
- Rather than having to check for nullptr, just make sure the slot isn't called
This commit is contained in:
parent
6b85b2b505
commit
773f186a7f
@ -196,9 +196,6 @@ COverlayDockContainer::~COverlayDockContainer()
|
|||||||
{
|
{
|
||||||
ADS_PRINT("~COverlayDockContainer");
|
ADS_PRINT("~COverlayDockContainer");
|
||||||
|
|
||||||
// Remove event filter in case there are any queued messages
|
|
||||||
parent()->removeEventFilter(this);
|
|
||||||
|
|
||||||
if (d->DockManager)
|
if (d->DockManager)
|
||||||
{
|
{
|
||||||
parentContainer()->removeOverlayWidget(this);
|
parentContainer()->removeOverlayWidget(this);
|
||||||
@ -312,6 +309,10 @@ void COverlayDockContainer::cleanupAndDelete()
|
|||||||
dockWidget->sideTabWidget()->setParent(dockWidget);
|
dockWidget->sideTabWidget()->setParent(dockWidget);
|
||||||
dockWidget->sideTabWidget()->hide();
|
dockWidget->sideTabWidget()->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove event filter in case there are any queued messages
|
||||||
|
parent()->removeEventFilter(this);
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user