summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-03 14:30:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-03 14:30:30 -0800
commita0b83dc2f16fa3042966aeedc85e7eacfc4a200c (patch)
treec532500c0eef4757a5d24dfee49986fcdafcbad7 /qt-mobile/qmlmanager.cpp
parent7a94360a6da6665ea42de29c39246a5ebc67dada (diff)
downloadsubsurface-a0b83dc2f16fa3042966aeedc85e7eacfc4a200c.tar.gz
QML UI: different functions for saving Preferences and Cloud Credentials
Tapping Save on those two pages should only update the data that are actually available on those pages. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index d5a3c51ad..64e8a6714 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -42,13 +42,17 @@ QMLManager::~QMLManager()
void QMLManager::savePreferences()
{
QSettings s;
- bool cloudCredentialsChanged = false;
s.beginGroup("LocationService");
s.setValue("time_threshold", timeThreshold() * 60);
prefs.time_threshold = timeThreshold() * 60;
s.setValue("distance_threshold", distanceThreshold());
prefs.distance_threshold = distanceThreshold();
- s.endGroup();
+}
+
+void QMLManager::saveCloudCredentials()
+{
+ QSettings s;
+ bool cloudCredentialsChanged = false;
s.beginGroup("CloudStorage");
s.setValue("email", cloudUserName());
s.setValue("save_password_local", saveCloudPassword());