aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index a8dd24948..89873fbb3 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -231,13 +231,9 @@ QMLManager *QMLManager::instance()
void QMLManager::savePreferences()
{
- QSettings s;
- s.beginGroup("LocationService");
- s.setValue("time_threshold", timeThreshold() * 60);
- prefs.time_threshold = timeThreshold() * 60;
- s.setValue("distance_threshold", distanceThreshold());
- prefs.distance_threshold = distanceThreshold();
- s.sync();
+ auto location = SettingsObjectWrapper::instance()->location_settings;
+ location->setTimeThreshold(timeThreshold() * 60);
+ location->setDistanceThreshold(distanceThreshold());
}
#define CLOUDURL QString(prefs.cloud_base_url)