diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-05-22 14:04:53 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-05-25 11:21:59 +0000 |
commit | cf9c07539c3e6a30f5f73fd1b2d5feebf03d716a (patch) | |
tree | 06e15e9018afafbc1dd851ebb81f9499f5a1653f /src/qml/jsruntime | |
parent | 444e5c1c4a087a080914e1cedd3c6ab00875ff94 (diff) |
TableView: check if the model can produce items before loading
If you assign a non-empty model, the model can still return a count
of zero if something else is amiss, like the delegate being null.
So we need to do en extra check for this before we load the first
top-left item, otherwise we'll hit an assert later in the loading process.
Change-Id: I747868faf7955b8784b2957505ae03e5b1aa0b45
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/jsruntime')
0 files changed, 0 insertions, 0 deletions