summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-24 11:22:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-24 11:50:46 -0700
commitb1037abdb7ea59b4f437b22cd42a9a0f7ef88d09 (patch)
treebcdc249228195d8bfac437715f604ed68ba6397e /subsurface-core
parent9a62685f0be62e9a935ad050d6d5ef34b57b971b (diff)
downloadsubsurface-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.cpp4
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();