[PATCH] Don't complain about missing GPS source unless mobile

Robert C. Helling helling at atdotde.de
Fri Dec 18 14:37:01 PST 2015


From: "Robert C. Helling" <helling at atdotde.de>

Signed-off-by: Robert C. Helling <helling at atdotde.de>
---
 subsurface-core/gpslocation.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index 532c142..fd6b430 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;
-- 
2.5.4 (Apple Git-61)



More information about the subsurface mailing list