From 8eb019456d341e676d5152a9e4b8df6b7a502b96 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sun, 7 Feb 2016 22:23:08 +0100 Subject: Avoid QtCreator warning about == Warning M126: == and != may perform type coercion, use === or !== to avoid it Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveList.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml') diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index 1429d6776..13cc10411 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -15,7 +15,7 @@ MobileComponents.Page { id: diveDelegate MobileComponents.ListItem { enabled: true - checked: diveListView.currentIndex == model.index + checked: diveListView.currentIndex === model.index width: parent.width property real detailsOpacity : 0 @@ -145,7 +145,7 @@ MobileComponents.Page { Connections { target: stackView onDepthChanged: { - if (stackView.depth == 1) { + if (stackView.depth === 1) { diveListView.currentIndex = -1; } } -- cgit v1.2.3-70-g09d2