From 15ac98299094f5502044fde7820bf4b05a898a83 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 10 Aug 2012 19:15:18 +0200 Subject: autostart daemon on boot --- metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'metawatch/qml/com/javispedro') 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; -- cgit v1.2.3