1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00

Delete implicit ScrollArea when content Widget is deleted in hideDockWidget()

This commit is contained in:
AndreMeyerRMC 2023-08-18 10:04:29 +02:00
parent 2d2de53dcd
commit a438e7ae14

View File

@ -213,6 +213,12 @@ void DockWidgetPrivate::hideDockWidget()
if (Features.testFlag(CDockWidget::DeleteContentOnClose))
{
if (ScrollArea)
{
ScrollArea->takeWidget();
delete ScrollArea;
ScrollArea = nullptr;
}
Widget->deleteLater();
Widget = nullptr;
}