on xenial help sign in
Change index via positionViewAtIndex()
e322859Alberto Mardegan
qml/Dash/PreviewListView.qml+1−1
@@ -86,7 +86,7 @@ Item {
86
86
87 onModelChanged: {
87 onModelChanged: {
88 if (count > 0 && initialIndex >= 0) {
88 if (count > 0 && initialIndex >= 0) {
89− currentIndex = initialIndex;
89+ previewListView.positionViewAtIndex(initialIndex, ListView.SnapPosition);
90 initialIndex = -1;
90 initialIndex = -1;
91 }
91 }
92 }
92 }