diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 23b493d..b4e0bb1 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -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); }