Mobile: fix incorrect variable dereference for dive site

Since we are accessing the model, this is the variable we should use.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-22 16:30:17 -04:00
parent f69b93de40
commit 320d2c47aa

View file

@ -52,7 +52,7 @@ Item {
enabled: gpsDecimal !== "" enabled: gpsDecimal !== ""
onClicked: { onClicked: {
showMap() showMap()
mapPage.centerOnDiveSite(dive_site) mapPage.centerOnDiveSite(diveSite)
} }
} }
} }
@ -63,7 +63,7 @@ Item {
text: qsTr("Map it") text: qsTr("Map it")
onClicked: { onClicked: {
showMap() showMap()
mapPage.centerOnDiveSite(dive_site) mapPage.centerOnDiveSite(diveSite)
} }
} }
Row { Row {