on xenial help sign in
No need to get section again
cd6a049Albert Astals
plugins/Dash/listviewwithpageheader.cpp−1
@@ -1207,7 +1207,6 @@ void ListViewWithPageHeader::layout()
1207 }
1207 }
1208 } else {
1208 } else {
1209 // Update the top sticky section header
1209 // Update the top sticky section header
1210− const QString section = m_delegateModel->stringValue(modelIndex, m_sectionProperty);
1211 QQmlContext *context = QQmlEngine::contextForObject(m_topSectionItem)->parentContext();
1210 QQmlContext *context = QQmlEngine::contextForObject(m_topSectionItem)->parentContext();
1212 context->setContextProperty(QLatin1String("section"), section);
1211 context->setContextProperty(QLatin1String("section"), section);
1213
1212