Update FloatingDockContainer.cpp

saveState() may use the floatingDockContainer to be deleted
This commit is contained in:
Eric Wong 2023-06-14 12:07:45 +08:00 committed by GitHub
parent ccbde05fb7
commit c08d91687a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1133,6 +1133,10 @@ void CFloatingDockContainer::hideAndDeleteLater()
d->AutoHideChildren = false;
hide();
deleteLater();
if (d->DockManager)
{
d->DockManager->removeFloatingWidget(this);
}
}
//============================================================================