summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-13 11:35:51 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-13 13:52:00 -0800
commit702d09df9fe582d253607589c4b88ccd62502883 (patch)
tree7d298d04327e59c0b169a10a8f4269654720da8a /mobile-widgets/qml
parent4454cf0381625d91a74310e8abe3eb1de8ea83a1 (diff)
downloadsubsurface-702d09df9fe582d253607589c4b88ccd62502883.tar.gz
mobile/GPS: fix two errors in the GPS handling
First, the time zone adjustment was wrong - this as written could only ever have worked in UTC or by pure chance. Second, the order of alerting the UI of the availability of a GPS fix was also incorrect creating a race between the UI and our data structures. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index ededf8196..5fb2b2cde 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -204,6 +204,7 @@ Item {
target: manager
onWaitingForPositionChanged: {
gpsText = manager.getCurrentPosition()
+ manager.appendTextToLog("received updated position info " + gpsText)
}
}