Avoid QtCreator warning about ==

Warning M126: == and != may perform type coercion, use === or !== to avoid it

Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Henrik Brautaset Aronsen 2016-02-07 22:23:08 +01:00 committed by Dirk Hohndel
parent 47403588e5
commit 8eb019456d

View file

@ -15,7 +15,7 @@ MobileComponents.Page {
id: diveDelegate id: diveDelegate
MobileComponents.ListItem { MobileComponents.ListItem {
enabled: true enabled: true
checked: diveListView.currentIndex == model.index checked: diveListView.currentIndex === model.index
width: parent.width width: parent.width
property real detailsOpacity : 0 property real detailsOpacity : 0
@ -145,7 +145,7 @@ MobileComponents.Page {
Connections { Connections {
target: stackView target: stackView
onDepthChanged: { onDepthChanged: {
if (stackView.depth == 1) { if (stackView.depth === 1) {
diveListView.currentIndex = -1; diveListView.currentIndex = -1;
} }
} }