on xenial help sign in
Set currentIndex after the model change is completed
a5a98edAlberto Mardegan
qml/Dash/PreviewListView.qml+1−1
@@ -84,7 +84,7 @@ Item {
84 }
84 }
85 }
85 }
86
86
87− onCountChanged: {
87+ onModelChanged: {
88 if (count > 0 && initialIndex >= 0) {
88 if (count > 0 && initialIndex >= 0) {
89 currentIndex = initialIndex;
89 currentIndex = initialIndex;
90 initialIndex = -1;
90 initialIndex = -1;