summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-06 17:36:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-12 11:30:19 -0700
commit75ce813a27fc22fca8e4b1c7484333235c9caea6 (patch)
treee28a6d118bee66886051d47e0f00d7644679a4b2 /mobile-widgets
parent2b11fd4cc8fca46152bc8c3c0b53658694cfd5bf (diff)
downloadsubsurface-75ce813a27fc22fca8e4b1c7484333235c9caea6.tar.gz
core: activate qPrefLocationService
remove LocationService from SettingsObjectWrapper and reference qPrefLocationService update files using SettingsObjectWrapper/LocationService to use qPrefLocationService this activated qPrefLocationService and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 6a5043583..5ede64152 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -425,8 +425,8 @@ QMLManager *QMLManager::instance()
void QMLManager::savePreferences()
{
auto location = SettingsObjectWrapper::instance()->location_settings;
- location->setTimeThreshold(QMLPrefs::instance()->timeThreshold() * 60);
- location->setDistanceThreshold(QMLPrefs::instance()->distanceThreshold());
+ location->set_time_threshold(QMLPrefs::instance()->timeThreshold() * 60);
+ location->set_distance_threshold(QMLPrefs::instance()->distanceThreshold());
}
#define CLOUDURL QString(prefs.cloud_base_url)