diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlprefs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp index 1f30f7a7e..cf7b5ddbb 100644 --- a/mobile-widgets/qmlprefs.cpp +++ b/mobile-widgets/qmlprefs.cpp @@ -4,6 +4,7 @@ #include "core/membuffer.h" #include "core/gpslocation.h" +#include "core/settings/qPrefUnit.h" /*** Global and constructors ***/ @@ -78,6 +79,10 @@ void QMLPrefs::setCredentialStatus(const qPrefCloudStorage::cloud_status value) QMLManager::instance()->appendTextToLog("Switching to no cloud mode"); set_filename(NOCLOUD_LOCALSTORAGE); clearCredentials(); + if (qPrefUnits::unit_system() == "imperial") + prefs.units = IMPERIAL_units; + else if (qPrefUnits::unit_system() == "metric") + prefs.units = SI_units; } m_credentialStatus = value; emit credentialStatusChanged(); |