on xenial help sign in
Add an assert here
commit64f6e3c6330fa8c1602ddbaab66c91177c6b64f6 authorAlbert Astals <albert.astals@canonical.com> dateFri 3 Jan 2014, 10:39 (13 years ago) parent2136695
1 file changed+1
plugins/DashViews/listviewwithpageheader.cpp+1
plugins/DashViews/listviewwithpageheader.cpp+1
@@ -871,6 +871,7 @@ void ListViewWithPageHeader::itemCreated(int modelIndex, QObject *object)
871871 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
872872 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
873873 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
874+ Q_ASSERT (modelIndex == m_asyncRequestedIndex);
874875 if (modelIndex == m_asyncRequestedIndex) {
875876 createItem(modelIndex, false);
876877 refill();