From: Henrik Brautaset Aronsen <[email protected]>

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

Signed-off-by: Henrik Brautaset Aronsen <[email protected]>
---
 qt-mobile/qml/DiveList.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 1429d67..13cc104 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;
                        }
                }
-- 
2.7.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to