diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-11-16 18:52:56 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-12-04 08:09:59 +0000 |
commit | 70199a43a978649d87c5b2815808c4a04902c6e0 (patch) | |
tree | 453be3f4c601ff4dc84cfd728d11591fef17c1f9 /examples | |
parent | 98b6f8eee9affce6df8be137068e49f88becb9ce (diff) |
Fix for SpinBox crash in Qt Quick Designer
The crash was not 100% reliable and depends on the order in the hash().
Something in beginDeferred() has a side effect on deferData->bindings
and an element gets deleted. This causes a crash while iterating (++it).
Therefore we do a copy of the hash.
I added a regression test. The test did only crash for SpinBox and it did
only crash roughly half the time.
Task-number: QTBUG-71942
Change-Id: I339e0a4382f97db44f6ff2e9f07f2be7278d1e24
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions