mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Properly reset widget pointer to nullptr in takeWidget()
This commit is contained in:
parent
6a393955cd
commit
1848ffa35a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user