diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-04-28 19:04:41 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-05-05 10:03:27 +0200 |
commit | 0e5d5513279cff61673adc2ace5ed27202bbdc97 (patch) | |
tree | 421723eb0cf64161be6f56b82c440ae4627f3b30 /src/gui | |
parent | 65fef44ddf18c2dbc7357ff056a28a308b1350f2 (diff) |
QDialogButtonBox: properly clear buttons in setStandardButtons()
When setting new buttons with setStandardButtons(), the old ones are
deleted by iterating over d->standardButtonHash. But this hash is
modified when a button is destroyed and therefore sometimes not all
buttons were deleted.
This amends df735d794fd2e545c18b9e345e833422bcd64329.
Fixes: QTBUG-123939
Pick-to: 6.7 6.5
Change-Id: I867086855cfde88a7b22a5579662f250b9db0042
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions