diff options
author | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-11-02 22:14:31 +0100 |
---|---|---|
committer | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-11-13 18:09:33 +0100 |
commit | 79b34126850c4235a1914e95f8e4235cfddba007 (patch) | |
tree | c415730a5d9c00a08fe953c8fbdbaf0f94b6287f /src/qml/doc | |
parent | a4ed13098d3995ab59e66d3ff5011e2b2014978f (diff) |
Fix crash issue in quick table view control
The quick table view can have both QAbstractItemModel and JS value
as its model. The table view release and load the items (or rebuild)
when its assigned with new model. The newmodel always be compared
with existing model before rebuild via
QQuickTableViewPrivate::syncModel. This comparison works with
QAbstractItemModel but the same fails with JS model.
This patch adds additional validation in
QQuickTableViewPrivate::syncModel and QQuickTableViewPrivate::setModel
for comparing JS model to avoid rebuild when existing model
overwritten with same model again.
Fixes: QTBUG-117917
Pick-to: 6.6 6.5 6.2
Change-Id: Ic15145c4b8998c68ae6471a2abf4aef727041eea
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/qml/doc')
0 files changed, 0 insertions, 0 deletions