From a1aa83fcfd9a3a365c12974b6956e4f9b8323cf1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 29 Jan 2016 10:17:22 -0800 Subject: Minor cleanups Improve readability of the code. Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetails.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-mobile/qml/DiveDetails.qml') diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index 77d52c77e..bf07d4571 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -75,8 +75,8 @@ MobileComponents.Page { } function showDiveIndex(index) { - diveDetailsListView.currentIndex = index; - diveDetailsListView.positionViewAtIndex(diveDetailsListView.currentIndex, ListView.Beginning); + currentIndex = index; + diveDetailsListView.positionViewAtIndex(index, ListView.Beginning); } onWidthChanged: diveDetailsListView.positionViewAtIndex(diveDetailsListView.currentIndex, ListView.Beginning); -- cgit v1.2.3-70-g09d2