https://bugs.kde.org/show_bug.cgi?id=396666

--- Comment #1 from David Edmundson <k...@davidedmundson.co.uk> ---
Pasting the code, though you'll see it yourself as soon as you open the file.


...do some changes
    const int newCount = rowCount();

    if (newCount > oldCount) {
...
        beginInsertRows(QModelIndex(), oldCount, newCount - 1);
        endInsertRows();
    }

at the time of beginInsertRows rowCount must be the size it was before any
changes, with the correct value at the time of endInsertRows

This was always the case, but Qt5.11 now has an assert for it.

Whether this has any real impact on non dev builds I don't know, but given how
flaky QtQuick models can be, probably best to be as safe as possible.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to