diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2016-02-07 22:23:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-07 13:57:02 -0800 |
commit | 8eb019456d341e676d5152a9e4b8df6b7a502b96 (patch) | |
tree | 8d5d1bd9c43cd686610f5e254afd16349b8ff4a8 /qt-mobile/qml/DiveList.qml | |
parent | 47403588e5241368c43dd407090b1be214b56252 (diff) | |
download | subsurface-8eb019456d341e676d5152a9e4b8df6b7a502b96.tar.gz |
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>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |