aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/IconItem.qml
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 21:01:49 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-09-27 21:01:49 +0800
commitfb66fba2bfdd2f14adf9218e8a6d537c9121ed3c (patch)
tree43b6f217b728042fd7848b96d7574e07800611b1 /homescreen/qml/IconItem.qml
parenta9df3eb09a85d479f26a14cd71a41e1de087c1ef (diff)
fix: Remove qml M126 warning
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: I374749e71705b24eb793e0ba8a5efacc81ea40de Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'homescreen/qml/IconItem.qml')
-rw-r--r--homescreen/qml/IconItem.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/homescreen/qml/IconItem.qml b/homescreen/qml/IconItem.qml
index a5c032e..ace0628 100644
--- a/homescreen/qml/IconItem.qml
+++ b/homescreen/qml/IconItem.qml
@@ -81,7 +81,7 @@ Item {
states: [
State {
name: 'active'
- when: loc.currentId == model.id
+ when: loc.currentId === model.id
PropertyChanges {
target: container
x: loc.mouseX - width/2