Minor cleanups

Improve readability of the code.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-29 10:17:22 -08:00
parent 0eae59bcd2
commit a1aa83fcfd
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -23,7 +23,7 @@ MobileComponents.Page {
// When clicked, the mode changes to details view
onClicked: {
diveListView.currentIndex = model.index
diveListView.currentIndex = index
detailsWindow.showDiveIndex(index);
stackView.push(detailsWindow);
}