diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-12-18 23:37:01 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-19 19:08:37 -0800 |
commit | 20fa943d25880e930b487b584c6f491ecdeee8a8 (patch) | |
tree | 7850be8fed58487edf4228cd722c48f0d129c00e /subsurface-core/gpslocation.cpp | |
parent | c3ebeadb340300a04158d677ff52a53523698921 (diff) | |
download | subsurface-20fa943d25880e930b487b584c6f491ecdeee8a8.tar.gz |
Don't complain about missing GPS source unless mobile
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gpslocation.cpp')
-rw-r--r-- | subsurface-core/gpslocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |