Commit 6d6c596
committed
Use RemoveAllWidgets in RemovedFromManager for robust cleanup
Replace individual RemoveWidget calls with RemoveAllWidgets(false, false)
in generated RemovedFromManager to ensure all child widgets are properly
removed from the container's mWidgets list. This works together with
the existing RemoveAllWidgets in the destructor to prevent
WidgetContainer assertion failure (mWidgets must be empty in destructor).1 parent 1261a66 commit 6d6c596
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 379 | + | |
385 | 380 | | |
386 | 381 | | |
387 | 382 | | |
| |||
0 commit comments