summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlprefs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlprefs.cpp')
-rw-r--r--mobile-widgets/qmlprefs.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp
index 5b819aaf0..eaeab9ceb 100644
--- a/mobile-widgets/qmlprefs.cpp
+++ b/mobile-widgets/qmlprefs.cpp
@@ -56,7 +56,9 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value)
if (value == qPrefCloudStorage::CS_NOCLOUD) {
QMLManager::instance()->appendTextToLog("Switching to no cloud mode");
set_filename(NOCLOUD_LOCALSTORAGE);
- clearCredentials();
+ qPrefCloudStorage::set_cloud_storage_email(NULL);
+ qPrefCloudStorage::set_cloud_storage_password(NULL);
+ setCloudPin(NULL);
if (qPrefUnits::unit_system() == "imperial")
prefs.units = IMPERIAL_units;
else if (qPrefUnits::unit_system() == "metric")
@@ -90,12 +92,3 @@ void QMLPrefs::setShowPin(bool enable)
m_showPin = enable;
emit showPinChanged();
}
-
-/*** public slot functions ***/
-
-void QMLPrefs::clearCredentials()
-{
- qPrefCloudStorage::set_cloud_storage_email(NULL);
- qPrefCloudStorage::set_cloud_storage_password(NULL);
- setCloudPin(NULL);
-}