@@ -151,12 +151,10 @@ Item {
151 if (!visible && __popup) dismiss();
151 if (!visible && __popup) dismiss();
154− Component.onCompleted: {
154+ onShouldDisplayChanged: {
155− shouldDisplayChanged.connect(function() {
156− if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
155+ if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
157− d.recalcFirstInvisibleIndex();
156+ d.recalcFirstInvisibleIndex();
162 Connections {
160 Connections {