diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-24 11:22:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-24 11:50:46 -0700 |
commit | b1037abdb7ea59b4f437b22cd42a9a0f7ef88d09 (patch) | |
tree | bcdc249228195d8bfac437715f604ed68ba6397e /subsurface-core | |
parent | 9a62685f0be62e9a935ad050d6d5ef34b57b971b (diff) | |
download | subsurface-b1037abdb7ea59b4f437b22cd42a9a0f7ef88d09.tar.gz |
QML UI: GPS location service - only show the fixes we store
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/gpslocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index 6a65ddeff..399ed6997 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -118,8 +118,6 @@ void GpsLocation::newPosition(QGeoPositionInfo pos) { int64_t lastTime; QGeoCoordinate lastCoord; - QString msg("received new position %1"); - status(qPrintable(msg.arg(pos.coordinate().toString()))); int nr = m_trackers.count(); if (nr) { gpsTracker gt = m_trackers.last(); @@ -133,6 +131,8 @@ void GpsLocation::newPosition(QGeoPositionInfo pos) if (!nr || waitingForPosition || (int64_t)pos.timestamp().toTime_t() > lastTime + prefs.time_threshold || lastCoord.distanceTo(pos.coordinate()) > prefs.distance_threshold) { + QString msg("received new position %1"); + status(qPrintable(msg.arg(pos.coordinate().toString()))); waitingForPosition = false; gpsTracker gt; gt.when = pos.timestamp().toTime_t(); |