From e4634efdc6b985001c079f61368e6780127371f2 Mon Sep 17 00:00:00 2001 From: Li Xiaoming Date: Fri, 27 Sep 2019 20:02:10 +0800 Subject: fix(IconItem.qml): 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: I96de9ecace7ea519946c0df739db9753d44d2dfd Signed-off-by: Li Xiaoming --- launcher/qml/IconItem.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'launcher') 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 -- cgit 1.2.3-korg