Fix qml warnings
CardTool.qml:179:38: Unable to assign [undefined] to bool
Approved by: Michael Zanetti
commitc2f1939d2a96411c59fe73f37d6ca8cdb90e9bf9
authorAlbert Astals <albert.astals@canonical.com>
dateTue 25 Nov 2014, 13:54 (12 years ago)
parent24b18222333849
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"]) {