Fix duplicate section items
If currentIndex is initially set to an item that does not end up being
the first item of a section after the view has completely been
initialized, a stale section item remains.
Fixes: QTBUG-146169
Pick-to: 6.12
Change-Id: I3f6aeedcf89fb6d218bc92c5baa68339924f2f3f
Reviewed-by: SanthoshKumar Selvaraj <santhosh.kumar.selvaraj@qt.io>
| commit | e980a038fb1a6965295f10ddc50a9f0d7f1f3f83 |
| parent | 85355fd668d5d524cc2dd78f74fec5e48c1eeb85 |
| author | Joni Poikelin <joni.poikelin@qt.io> |
| committer | Joni Poikelin <joni.poikelin@qt.io> |
| commit time | Thu, 22 Oct 2026 10:09:03 +0000 |