Properly reset widget pointer to nullptr in takeWidget()

This commit is contained in:
Uwe Kindler 2020-05-26 06:41:40 +02:00
parent 6a393955cd
commit 1848ffa35a

View File

@ -293,6 +293,7 @@ QWidget* CDockWidget::takeWidget()
w = d->ScrollArea->takeWidget(); w = d->ScrollArea->takeWidget();
delete d->ScrollArea; delete d->ScrollArea;
d->ScrollArea = nullptr; d->ScrollArea = nullptr;
d->Widget = nullptr;
} }
else if (d->Widget) else if (d->Widget)
{ {