@@ -151,12 +151,10 @@ Item {
151151 if (!visible && __popup) dismiss();
152152 }
153153
154− Component.onCompleted: {
155− shouldDisplayChanged.connect(function() {
156− if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
157− d.recalcFirstInvisibleIndex();
158− }
159− });
154+ onShouldDisplayChanged: {
155+ if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
156+ d.recalcFirstInvisibleIndex();
157+ }
160158 }
161159
162160 Connections {