summaryrefslogtreecommitdiff
path: root/metawatch/qml/com/javispedro
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/qml/com/javispedro')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
index ed5cf9c..b6764b7 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
@@ -17,7 +17,7 @@ ListView {
return; // No items
}
if (selectable) {
- if (currentIndex == -1) {
+ if (currentIndex === -1) {
// If no item is selected, select the first one.
currentItem = 0;
return;
@@ -38,7 +38,7 @@ ListView {
return; // No items
}
if (selectable) {
- if (currentIndex == -1) {
+ if (currentIndex === -1) {
// If no item is selected, select the last one.
currentIndex = count - 1;
return;