1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-15 02:29:52 +08:00

Fixed crash caused by unparented widgets after restoring layout. (#724)

This is essentially due to `setDockArea` undoing the earlier
`setParent`.
This commit is contained in:
Josiah Bills 2025-03-07 02:52:48 -05:00 committed by GitHub
parent e836b154eb
commit c305432ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -841,9 +841,9 @@ void CDockWidget::saveState(QXmlStreamWriter& s) const
void CDockWidget::flagAsUnassigned()
{
d->Closed = true;
setParent(d->DockManager);
setVisible(false);
setDockArea(nullptr);
setParent(d->DockManager);
tabWidget()->setParent(this);
}