summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qmlprefs.cpp13
-rw-r--r--mobile-widgets/qmlprefs.h3
2 files changed, 3 insertions, 13 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);
-}
diff --git a/mobile-widgets/qmlprefs.h b/mobile-widgets/qmlprefs.h
index 6d36334ce..67b086c95 100644
--- a/mobile-widgets/qmlprefs.h
+++ b/mobile-widgets/qmlprefs.h
@@ -43,9 +43,6 @@ public:
bool showPin() const;
void setShowPin(bool enable);
-public slots:
- void clearCredentials();
-
private:
QString m_cloudPin;
qPrefCloudStorage::cloud_status m_credentialStatus;