mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c3ebeadb34
commit
20fa943d25
1 changed files with 2 additions and 0 deletions
|
@ -56,7 +56,9 @@ QGeoPositionInfoSource *GpsLocation::getGpsSource()
|
||||||
connect(gpsSource, SIGNAL(updateTimeout()), this, SLOT(updateTimeout()));
|
connect(gpsSource, SIGNAL(updateTimeout()), this, SLOT(updateTimeout()));
|
||||||
gpsSource->setUpdateInterval(5 * 60 * 1000); // 5 minutes so the device doesn't drain the battery
|
gpsSource->setUpdateInterval(5 * 60 * 1000); // 5 minutes so the device doesn't drain the battery
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef SUBSURFACE_MOBILE
|
||||||
status("don't have GPS source");
|
status("don't have GPS source");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return gpsSource;
|
return gpsSource;
|
||||||
|
|
Loading…
Add table
Reference in a new issue