aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 20:02:10 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 20:02:10 +0800
commite4634efdc6b985001c079f61368e6780127371f2 (patch)
treec7bf875d29436dcac1893b2f3e0557c8885bcbcc
parent1046e52b2936b64d7b112e1408136ad0bec0464b (diff)
fix(IconItem.qml): Remove qml M126 warningicefish_8.99.1icefish/8.99.18.99.1
Message: == and != may perform type coercion, use === or !== to avoid it. Description: The non-strict equality comparison is allowed to convert its arguments to a common type. That can lead to unexpected results such as ' \t\r\n' == 0 being true. Use the strict equality operators === and !== and be explicit about conversions you require. Bug-AGL: SPEC-2814 Change-Id: I96de9ecace7ea519946c0df739db9753d44d2dfd Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
-rw-r--r--launcher/qml/IconItem.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/qml/IconItem.qml b/launcher/qml/IconItem.qml
index c15a3da..5adbe81 100644
--- a/launcher/qml/IconItem.qml
+++ b/launcher/qml/IconItem.qml
@@ -97,7 +97,7 @@ Item {
states: [
State {
name: 'active'
- when: loc.currentId == model.id
+ when: loc.currentId === model.id
PropertyChanges {
target: container
x: loc.mouseX - width/2