summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index f44b6b12b..ca8d82f13 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -496,7 +496,6 @@ QMLManager *QMLManager::instance()
void QMLManager::saveCloudCredentials()
{
- QSettings s;
bool cloudCredentialsChanged = false;
bool noCloud = QMLPrefs::instance()->credentialStatus() == qPrefCloudStorage::CS_NOCLOUD;
@@ -537,11 +536,9 @@ void QMLManager::saveCloudCredentials()
!verifyCredentials(QMLPrefs::instance()->cloudUserName(), QMLPrefs::instance()->cloudPassword(), QMLPrefs::instance()->cloudPin()))
return;
- s.beginGroup("CloudStorage");
- s.setValue("email", QMLPrefs::instance()->cloudUserName());
- s.setValue("password", QMLPrefs::instance()->cloudPassword());
- s.setValue("cloud_verification_status", QMLPrefs::instance()->credentialStatus());
- s.sync();
+ qPrefCloudStorage::set_cloud_storage_email(QMLPrefs::instance()->cloudUserName());
+ qPrefCloudStorage::set_cloud_storage_password(QMLPrefs::instance()->cloudPassword());
+ qPrefCloudStorage::set_cloud_verification_status(QMLPrefs::instance()->credentialStatus());
if (!same_string(prefs.cloud_storage_password,
qPrintable(QMLPrefs::instance()->cloudPassword()))) {