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:
parent
e836b154eb
commit
c305432ab2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user