on xenial help sign in
Fix qml warnings
c2f1939Albert Astals
qml/Dash/CardTool.qml+1−1
@@ -178,7 +178,7 @@ Item {
178 property var model: []
178 property var model: []
179 property bool hasAttributes: {
179 property bool hasAttributes: {
180 var attributes = components["attributes"];
180 var attributes = components["attributes"];
181− var hasAttributesFlag = (attributes != undefined) && attributes["field"];
181+ var hasAttributesFlag = (attributes != undefined) && (attributes["field"] != undefined);
182
182
183 if (hasAttributesFlag) {
183 if (hasAttributesFlag) {
184 if (attributes["max-count"]) {
184 if (attributes["max-count"]) {