From 20fa943d25880e930b487b584c6f491ecdeee8a8 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 18 Dec 2015 23:37:01 +0100 Subject: Don't complain about missing GPS source unless mobile Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- subsurface-core/gpslocation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subsurface-core') diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index 532c142b6..fd6b43049 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -56,7 +56,9 @@ QGeoPositionInfoSource *GpsLocation::getGpsSource() connect(gpsSource, SIGNAL(updateTimeout()), this, SLOT(updateTimeout())); gpsSource->setUpdateInterval(5 * 60 * 1000); // 5 minutes so the device doesn't drain the battery } else { +#ifdef SUBSURFACE_MOBILE status("don't have GPS source"); +#endif } } return gpsSource; -- cgit v1.2.3-70-g09d2