mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31: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();
|
||||
delete d->ScrollArea;
|
||||
d->ScrollArea = nullptr;
|
||||
d->Widget = nullptr;
|
||||
}
|
||||
else if (d->Widget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user