Fixed toggling dock widgets

This commit is contained in:
Eism
2021-06-25 10:16:40 +02:00
committed by Sergio Martins
parent 2fe8117e80
commit 02d4611501

View File

@@ -641,8 +641,8 @@ void DockWidgetBase::Private::close()
// Do some cleaning. Widget is hidden, but we must hide the tab containing it.
if (Frame *frame = this->frame()) {
frame->removeWidget(q);
q->setParent(nullptr);
frame->removeWidget(q);
if (SideBar *sb = DockRegistry::self()->sideBarForDockWidget(q)) {
sb->removeDockWidget(q);