@@ -1184,12 +1184,17 @@ void ListViewWithPageHeader::layout()
1184 // viewport is bigger than the start of the position of the first visible item
1184 // viewport is bigger than the start of the position of the first visible item
1185 // i.e. the first visible item starts before the viewport, or when the first
1185 // i.e. the first visible item starts before the viewport, or when the first
1186 // visible item starts just at the viewport start and it does not have its own section item
1186 // visible item starts just at the viewport start and it does not have its own section item
1187− if (topSectionStickPos > pos) {
1187+ const QString section = m_delegateModel->stringValue(modelIndex, m_sectionProperty);
1188− showStickySectionItem = true;
1188+ if (section.isEmpty()) {
1189− } else if (topSectionStickPos == pos) {
1190− showStickySectionItem = !item->sectionItem();
1192 showStickySectionItem = false;
1189 showStickySectionItem = false;
1191+ if (topSectionStickPos > pos) {
1192+ showStickySectionItem = true;
1193+ } else if (topSectionStickPos == pos) {
1194+ showStickySectionItem = !item->sectionItem();
1196+ showStickySectionItem = false;
1194 if (!showStickySectionItem) {
1199 if (!showStickySectionItem) {
1195 QQuickItemPrivate::get(m_topSectionItem)->setCulled(true);
1200 QQuickItemPrivate::get(m_topSectionItem)->setCulled(true);