Skip to content

Commit c305432

Browse files
authored
Fixed crash caused by unparented widgets after restoring layout. (#724)
This is essentially due to `setDockArea` undoing the earlier `setParent`.
1 parent e836b15 commit c305432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DockWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ void CDockWidget::saveState(QXmlStreamWriter& s) const
841841
void CDockWidget::flagAsUnassigned()
842842
{
843843
d->Closed = true;
844-
setParent(d->DockManager);
845844
setVisible(false);
846845
setDockArea(nullptr);
846+
setParent(d->DockManager);
847847
tabWidget()->setParent(this);
848848
}
849849

0 commit comments

Comments
 (0)