Subsurface-mobile: don't create the GPS source until it is needed

This should accelerate the startup of the UI a little more.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-30 10:58:18 -08:00
parent f6ae8bf3ea
commit 2311bc2378
2 changed files with 24 additions and 10 deletions

View file

@ -21,7 +21,7 @@ public:
private:
QGeoPositionInfo lastPos;
QGeoPositionInfoSource *gpsSource;
QGeoPositionInfoSource *getGpsSource();
void status(QString msg);
QSettings *geoSettings;
QNetworkReply *reply;