mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +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");
|
||||
|
||||
// Remove event filter in case there are any queued messages
|
||||
parent()->removeEventFilter(this);
|
||||
|
||||
if (d->DockManager)
|
||||
{
|
||||
parentContainer()->removeOverlayWidget(this);
|
||||
@ -312,6 +309,10 @@ void COverlayDockContainer::cleanupAndDelete()
|
||||
dockWidget->sideTabWidget()->setParent(dockWidget);
|
||||
dockWidget->sideTabWidget()->hide();
|
||||
}
|
||||
|
||||
// Remove event filter in case there are any queued messages
|
||||
parent()->removeEventFilter(this);
|
||||
|
||||
hide();
|
||||
deleteLater();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user