on xenial help sign in
Add an assert here
64f6e3cAlbert Astals
plugins/DashViews/listviewwithpageheader.cpp+1
@@ -871,6 +871,7 @@ void ListViewWithPageHeader::itemCreated(int modelIndex, QObject *object)
871 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
871 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
872 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
872 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
873 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
873 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
874+ Q_ASSERT (modelIndex == m_asyncRequestedIndex);
874 if (modelIndex == m_asyncRequestedIndex) {
875 if (modelIndex == m_asyncRequestedIndex) {
875 createItem(modelIndex, false);
876 createItem(modelIndex, false);
876 refill();
877 refill();