mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Delete implicit ScrollArea when content Widget is deleted in hideDockWidget() (#551)
This commit is contained in:
parent
61573cba16
commit
2178b52621
@ -213,6 +213,12 @@ void DockWidgetPrivate::hideDockWidget()
|
||||
|
||||
if (Features.testFlag(CDockWidget::DeleteContentOnClose))
|
||||
{
|
||||
if (ScrollArea)
|
||||
{
|
||||
ScrollArea->takeWidget();
|
||||
delete ScrollArea;
|
||||
ScrollArea = nullptr;
|
||||
}
|
||||
Widget->deleteLater();
|
||||
Widget = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user