Reset the whole model instead of emitting dataChanged() for each item.

Authored by lvsouza on Jun 15 2016, 6:02 PM.

Description

Reset the whole model instead of emitting dataChanged() for each item.

Emitting several dataChanged() in a row, without going back to Qt's event
loop in between seems to cause reentrancy problems in the QML delegates
connected to this model.

Upstream version of our bug #346118:
https://bugreports.qt.io/browse/QTBUG-53677

Tentative patch to fix the bug above:
https://codereview.qt-project.org/#/c/160884/

BUG: 346118

Details

Committed
lvsouzaJun 15 2016, 6:08 PM
Parents
R116:276d07142665: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown