on xenial help sign in
fixed warning
9b86d9dNick Dedekind
Panel/MenuContent.qml+3−1
@@ -109,7 +109,8 @@ MainView {
109 source: pageSource
109 source: pageSource
110 asynchronous: true
110 asynchronous: true
111
111
112− property bool contentActive: content.__contentActive && menuActivator.content[index].active
112+ readonly property bool indexActive: index >= 0 && index < menuActivator.count && menuActivator.content[index].active
113+ readonly property bool contentActive: content.__contentActive && indexActive
113
114
114 onContentActiveChanged: {
115 onContentActiveChanged: {
115 if (contentActive && item) {
116 if (contentActive && item) {
@@ -154,6 +155,7 @@ MainView {
154 interval: contentReleaseInterval
155 interval: contentReleaseInterval
155 onTriggered: {
156 onTriggered: {
156 content.__contentActive = false;
157 content.__contentActive = false;
158+ console.log("CLEARED");
157 menuActivator.clear();
159 menuActivator.clear();
158 }
160 }
159 }
161 }