Fix double delete of nested layouts in ClearLayout

This commit is contained in:
WarmUpTill
2026-11-05 18:51:30 +01:00
parent b7bf68615d
commit a37bba2521

View File

@@ -78,7 +78,6 @@ void ClearLayout(QLayout *layout, int afterIdx)
while ((item = layout->takeAt(afterIdx))) {
if (item->layout()) {
ClearLayout(item->layout());
delete item->layout();
}
DeleteLayoutItemWidget(item);
}