aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@qt.io>2016-07-20 10:21:08 +0300
committerJoni Poikelin <joni.poikelin@qt.io>2017-11-28 05:09:01 +0000
commit323fd0037c8d3e016c66fea024b57b11763624ed (patch)
treeb23901e50c4834149a7c14d40ac02a27162666ba /src/qml/qml/qqmlengine.cpp
parent22858d41a5351e1bc3ffd9778af77643d90e395f (diff)
Fix crash when moving items during asynchronous creation
In complicated cases where the model moves rows around while the view is running slow (perhaps during high CPU load), there were cases when Repeater would call movedItem->stackBefore(deleteableItem), but deleteable items can be null, so there was often an error QQuickItem::stackBefore: Cannot stack before 0x0, which must be a sibling and occasionally a crash. Now we check both the callee and the parameter to stackBefore to make sure neither of them are null. Task-number: QTBUG-54859 Change-Id: I45a8b2939c16b9bbe3a802ddd348dc55f51061a7 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
0 files changed, 0 insertions, 0 deletions