summaryrefslogtreecommitdiffstats
path: root/src/network/ssl
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-06-06 13:17:37 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-06-09 00:08:36 +0200
commitf0049873d2ce0742a2df7ce265db70ca8baa8442 (patch)
treee7feb2737dca6851cc9a32101be10335d3f201a7 /src/network/ssl
parente84c0df50f51c61aa49b47823582b0f8de406e3d (diff)
QMenu: don't crash when nested tear-off menus are closed
QMenu's causedStack maintains a list of menus on the way to the menu, and might contain nullptr if one of the entries was a tear-off menu that got closed (and thus destroyed, due to DeleteOnClose). If the entry we get from the stack is nullptr, fall back to the passed- in parent widget pointer, and test for nullptr before accessing. Add a test case that crashes without the fix. Fixes: QTBUG-112217 Pick-to: 6.6 6.5 6.2 Change-Id: I958182db47c3cc8733e1780f7efef43881ffae11 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/network/ssl')
0 files changed, 0 insertions, 0 deletions