diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-29 10:17:22 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-29 10:17:22 -0800 |
commit | a1aa83fcfd9a3a365c12974b6956e4f9b8323cf1 (patch) | |
tree | bc98afd67023d0787be3c910170bcf85e6eb650d /qt-mobile/qml/DiveDetails.qml | |
parent | 0eae59bcd29ba1242e26e8e0c4f52c12f790e521 (diff) | |
download | subsurface-a1aa83fcfd9a3a365c12974b6956e4f9b8323cf1.tar.gz |
Minor cleanups
Improve readability of the code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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); |