diff options
| author | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-09 19:23:33 +0200 |
|---|---|---|
| committer | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-10 19:01:06 +0000 |
| commit | ef8e548cf1adf8032c030df04e69988f238c77fb (patch) | |
| tree | d094a367af78bb17ca3e259e233c42770ff241d2 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | ca851b33171e652b740efbc47d41b8cf906ecd3d (diff) | |
QLayout: Consume ChildRemoved event, when layout is disabled
QLayout::widgetEvent() returned early, when the layout was disabled.
That suppressed ChildRemoved events and lead to a crash, when the
layout was enabled again.
Don't return early on ChildRemoved events.
Add an autotest in tst_layout::removeWidget().
Fixes: QTBUG-124151
Pick-to: 6.7 6.5 6.2
Change-Id: Ib0a0bb73978d9fc2c9777d300cf38a8c4496b702
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Chris René Lerner <chris.lerner@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
