Fix qml warnings
CardTool.qml:179:38: Unable to assign [undefined] to bool
commit5e73f522e423209017ec44b5bb54bb81d83f88d7
authorAlbert Astals <albert.astals@canonical.com>
dateTue 18 Nov 2014, 12:55 (12 years ago)
parent02ab6f8
qml/Dash/CardTool.qml+1−1
@@ -178,7 +178,7 @@ Item {
178178 property var model: []
179179 property bool hasAttributes: {
180180 var attributes = components["attributes"];
181− var hasAttributesFlag = (attributes != undefined) && attributes["field"];
181+ var hasAttributesFlag = (attributes != undefined) && attributes["field"] != undefined;
182182
183183 if (hasAttributesFlag) {
184184 if (attributes["max-count"]) {