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

make a copy before deleting

This commit is contained in:
Syarif Fakhri 2022-11-03 11:50:41 +08:00
parent 1f6938219a
commit 736c096bc0

View File

@ -1532,7 +1532,8 @@ bool CDockContainerWidget::event(QEvent *e)
//============================================================================ //============================================================================
void CDockContainerWidget::deleteAutoHideWidgets() void CDockContainerWidget::deleteAutoHideWidgets()
{ {
for (auto AutohideWidget : d->AutoHideWidgets) const auto autoHideWidgets = d->AutoHideWidgets;
for (auto AutohideWidget : autoHideWidgets)
{ {
AutohideWidget->cleanupAndDelete(); AutohideWidget->cleanupAndDelete();
} }