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

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);
}