diff options
author | Daniel Vrátil <daniel.vratil@kdab.com> | 2018-03-20 18:14:20 +0100 |
---|---|---|
committer | Daniel Vrátil <daniel.vratil@kdab.com> | 2018-03-20 22:36:00 +0000 |
commit | cc62a35bbebc9d069c9dbaeb703dfd6afea548e3 (patch) | |
tree | 4bbb3c129fc617b3d01c8e4e17edfaf6aa8ad8f3 /src/quick | |
parent | 2b0e0bee0c6153a8912778de5ff1cabd728d98d8 (diff) |
Fix QQmlListModel crash when appending an empty array in debug mode
Calling QQmlListModel::append() with an empty JS array triggers an assert
in QAbstractItemModel::beginInsertRows() because it's called with
negative "last" parameter.
Change-Id: I202da260d79f2e6677c663c5785ff754c715fef8
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick')
0 files changed, 0 insertions, 0 deletions