on xenial help sign in
moved shouldDisplay connection
1f44429Nick Dedekind
qml/ApplicationMenus/MenuBar.qml+4−6
@@ -151,12 +151,10 @@ Item {
151 if (!visible && __popup) dismiss();
151 if (!visible && __popup) dismiss();
152 }
152 }
153
153
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();
158− }
159− });
157+ }
160 }
158 }
161
159
162 Connections {
160 Connections {