qt5base-lts/tests/auto/widgets
Volker Hilsheimer 5e566ab373 When clearing selected items, iterate over a copy of the QSet
Selection change handlers of the items might call a method that
implicitly recreates the selectedItems QSet, which then invalidates
the iterators of the ranged for loop, resulting in crashes.

Iterate over a copy of the set instead.

Add a test case that crashen without the fix.

Fixes: QTBUG-101651
Pick-to: 6.3 6.2
Change-Id: I6da6f4043fe1906b0186931a37283f635cb5a404
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-03-18 21:56:19 +01:00
..
dialogs Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview When clearing selected items, iterate over a copy of the QSet 2022-03-18 21:56:19 +01:00
itemviews Repair some of tst_qtableview tests on Android 2022-03-15 21:05:31 +01:00
kernel QFormLayout: Fix assert when showing with hidden rows 2022-03-15 12:45:46 +01:00
styles QStyle: Fix cases when logicalValue is outside range 2022-03-10 12:39:11 +01:00
util Position QCompleter popup based on the widget's screen geometry 2022-02-15 01:28:30 +00:00
widgets Android: use empty Intent to clear clipboard data on API < 28 2022-03-18 18:35:03 +01:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00