summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 15:19:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 15:28:10 -0800
commit62f7ec11d72aeb4edbf4d6063ed3059912c7545a (patch)
treece80e830b90477cb9b3a4e13af2d6dfce268c42f /qt-mobile/qmlmanager.cpp
parentcd7d6ae6e51a8422a141fc389b2eca232b7e93c5 (diff)
downloadsubsurface-62f7ec11d72aeb4edbf4d6063ed3059912c7545a.tar.gz
Location service: store locations in settings
This is rather simplistic and will clutter the settings. I'm not convinced this is the BEST way to do this, but it's a rather straight forward way to get persistant storage of the location fixes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 1f2dd4c98..ad8f1e259 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -15,11 +15,11 @@ void qmlUiShowMessage(const char *errorString)
qDebug() << "couldn't set property messageText to" << errorString;
}
-QMLManager::QMLManager()
+QMLManager::QMLManager() :
+ m_locationServiceEnabled(false)
{
// create location manager service
locationProvider = new GpsLocation(this);
- setLocationServiceEnabled(false);
// Initialize cloud credentials.
setCloudUserName(prefs.cloud_storage_email);