Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
githubuser0xFFFF committed Nov 6, 2023
2 parents 234cf9a + 40beef9 commit bfa5124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DockContainerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1932,10 +1932,11 @@ bool CDockContainerWidget::restoreState(CDockingStateReader& s, bool Testing)
NewRootSplitter = d->newSplitter(Qt::Horizontal);
}

d->Layout->replaceWidget(d->RootSplitter, NewRootSplitter);
QLayoutItem* li = d->Layout->replaceWidget(d->RootSplitter, NewRootSplitter);
auto OldRoot = d->RootSplitter;
d->RootSplitter = qobject_cast<CDockSplitter*>(NewRootSplitter);
OldRoot->deleteLater();
delete li;

return true;
}
Expand Down

0 comments on commit bfa5124

Please sign in to comment.